Skip to content

Commit

Permalink
Update CAM's nosmp configure option
Browse files Browse the repository at this point in the history
Turn it off when both NTHRDS_ATM==1 and BUILD_THREADED=FALSE. If
BUILD_THREADED=TRUE, then run CAM in single-threaded mode with
HORIZ_OPENMP CPP macro turned on.
  • Loading branch information
amametjanov committed Apr 27, 2017
1 parent c9903bd commit d69272d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/cam/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ my $RUN_REFTOD = `./xmlquery RUN_REFTOD -value`;
my $UTILROOT = `./xmlquery UTILROOT -value`;
my $DOCN_MODE = `./xmlquery DOCN_MODE -value`;
my $COMPILER = `./xmlquery COMPILER -value`; # for chem preprocessor
my $BUILD_THREADED = `./xmlquery BUILD_THREADED -value`;

my @dirs = ("$CIMEROOT/utils/perl5lib");
unshift @INC, @dirs;
Expand Down Expand Up @@ -75,7 +76,7 @@ if ($BUILD_COMPLETE eq 'FALSE') {
my $spmd = '-spmd';
if ($MPILIB eq 'mpi-serial') {$spmd = "-nospmd";}
my $smp = '-smp';
if ($NTHRDS_ATM == 1) {$smp = "-nosmp";}
if (($NTHRDS_ATM == 1) && ($BUILD_THREADED eq 'FALSE')) {$smp = "-nosmp";}

# The ocean component setting is only used by CAM to do attribute matching for
# setting default tuning parameter values. In SOM mode we want to use the same
Expand Down

0 comments on commit d69272d

Please sign in to comment.