Skip to content

Commit 8152ba9

Browse files
authored
Fix DistributionMapping::SFC_Threshold (#5250)
The number should be >= 1. We should use max instead of min.
1 parent 9219ba4 commit 8152ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Base/AMReX_DistributionMapping.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ DistributionMapping::strategy (DistributionMapping::Strategy how)
8282
void
8383
DistributionMapping::SFC_Threshold (int n)
8484
{
85-
sfc_threshold = std::min(n,1);
85+
sfc_threshold = std::max(n,1);
8686
}
8787

8888
int

0 commit comments

Comments
 (0)