Skip to content

Commit fbe61bc

Browse files
committed
Put the partition detection in the right place
1 parent 0c88476 commit fbe61bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ bool core::config_meshes( pt::ptree &value)
678678
// only check the params and ics if we aren't using a parition file
679679
if(mesh_file_extension != ".partition")
680680
{
681-
is_partition = true;
681+
682682
for(const auto& it : param_file_paths)
683683
{
684684
auto extension = boost::filesystem::path(it).extension();
@@ -735,7 +735,7 @@ bool core::config_meshes( pt::ptree &value)
735735
#ifndef USE_MPI
736736
CHM_THROW_EXCEPTION(config_error, "Using a partitioned mesh requires enabling MPI during CHM configure and build.");
737737
#endif
738-
738+
is_partition = true;
739739
_mesh->from_partitioned_hdf5(_mesh_path);
740740

741741

0 commit comments

Comments
 (0)