File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -837,7 +837,9 @@ void triangulation::load_mesh_from_h5(const std::string& mesh_filename)
837
837
hsize_t nelem;
838
838
int ndims = dataspace.getSimpleExtentDims (&nelem, NULL );
839
839
_global_IDs.resize (nelem);
840
- dataset.read (_global_IDs.data (), PredType::NATIVE_INT);
840
+ static_assert (std::is_same<global_ordinal_type, long long >::value,
841
+ " Assumption is that global_ordinal_type (from trillions) must be typedef'd to long long" );
842
+ dataset.read (_global_IDs.data (), PredType::NATIVE_LLONG);
841
843
}
842
844
843
845
std::vector<int > owner; // what MPIrank owns each triangle,
@@ -1593,8 +1595,8 @@ void triangulation::partition_mesh_nonMPI(global_ordinal_type _num_global_faces)
1593
1595
{
1594
1596
_global_IDs[i] = i;
1595
1597
_faces.at (i)->is_ghost = false ;
1596
- _faces. at (i)-> cell_local_id =
1597
- i; // Mesh has been (potentially) reordered before this point. Set the local_id correctly
1598
+ // Mesh has been (potentially) reordered before this point. Set the local_id correctly
1599
+ _faces. at (i)-> cell_local_id = i;
1598
1600
}
1599
1601
1600
1602
// make sure these setup when in MPI mode for partition
You can’t perform that action at this time.
0 commit comments