File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ Vector&
114
114
Vector::operator = (
115
115
const Vector& rhs)
116
116
{
117
+ CAROM_VERIFY (d_comm == rhs.getComm ());
117
118
d_distributed = rhs.d_distributed ;
118
119
d_num_procs = rhs.d_num_procs ;
119
- d_comm = rhs.getComm ();
120
120
setSize (rhs.d_dim );
121
121
memcpy (d_vec, rhs.d_vec , d_dim*sizeof (double ));
122
122
return *this ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class Vector
32
32
public:
33
33
/* *
34
34
* @brief Constructor creating a Vector with uninitialized values and size.
35
- *
35
+ *
36
36
* @param[in] comm MPI communicator of the processors that own this Vector.
37
37
*/
38
38
Vector (MPI_Comm comm = MPI_COMM_WORLD);
@@ -817,8 +817,9 @@ class Vector
817
817
818
818
/* *
819
819
* @brief MPI communicator of the processors that own this Vector.
820
+ * Cannot change once initialized.
820
821
*/
821
- MPI_Comm d_comm;
822
+ const MPI_Comm d_comm;
822
823
};
823
824
824
825
/* *
You can’t perform that action at this time.
0 commit comments