Skip to content

Commit

Permalink
Merge branch 'jayeshkrishna/fix_anvil_mpi_serial' (PR #1341)
Browse files Browse the repository at this point in the history
Making sure that we don't define PNETCDF_PATH when using mpi-serial
on Anvil.

Without the fix if PNETCDF_PATH is defined for mpi-serial builds
it gets "undefine"d in the Makefile. However older versions of
the make utility do not recognize the "undefine" directive. This
causes mpi-serial builds to fail.

Fixes #1340

[BFB]
  • Loading branch information
jayeshkrishna committed Mar 23, 2017
2 parents bf51923 + 845491d commit 9447c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cime_config/acme/machines/config_machines.xml
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@
</module_system>
<environment_variables>
<env name="NETCDF_PATH">`which nc-config | xargs dirname | xargs dirname`</env>
<env name="PNETCDF_PATH">`which pnetcdf_version | xargs dirname | xargs dirname`</env>
<env name="PNETCDF_PATH" mpilib="!mpi-serial">`which pnetcdf_version | xargs dirname | xargs dirname`</env>
</environment_variables>
<environment_variables>
<env name="OMP_STACKSIZE">256M</env>
Expand Down

0 comments on commit 9447c6a

Please sign in to comment.