Compile error with MPAS atmosphere 8.4.1

smasters

New member
I'm trying to comple MPAS atmosphere 8.4.1 using the NVM (PGI) fortran compiler. Source code was pulled from the tar.gz file.

Compiler version: pgf90 --version
pgf90 (aka nvfortran) 24.3-0 64-bit target on x86-64 Linux -tp alderlake

Compile log is attached. It appears to be complaining about an improper continuation line.

NVFORTRAN-S-0290-Unexpected continuation line (./inc/setup_packages.inc: 107)
0 inform, 0 warnings, 1 severes, 0 fatal for atm_setup_sfclayer_package
make[3]: *** [Makefile:96: mpas_atm_core_interface.o] Error 2
make[3]: Leaving directory '/home/stevem/wrf4/MPAS-Model-8.4.1/src/core_atmosphere'

uname -a:
Linux wrf6 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
 

Attachments

Hello,

Thanks for the report, and we have a few workarounds to temporarily bypass the issue (until a more permanent fix is released). See Fix for multiply occurring nml options in `active_when` attribute by abishekg7 · Pull Request #1461 · MPAS-Dev/MPAS-Model

Either one on its own should be sufficient, and you don't need to use them both together:
  1. Add GEN_F90=true to your build command. This will pre-process source files with cpp rather than letting the nvfortran compiler handle the pre-processing, which is what seems to be the source of the issue.
  2. Change fortprintf to fprintf on line 3002 of src/tools/registry/gen_inc.c. This will avoid line wrapping in the generated source code, and that should avoid issues in the nvfortran compiler's pre-processing of the line-wrapped PACKAGE_LOGIC_PRINT macro.

Abishek
 
Back
Top