openwfm / WRF-SFIRE

A coupled weather-fire forecasting model built on top of Weather Research and Forecasting (WRF). This is the original https://github.com/openwfm/wrf-fire transitioned to a fork of WRF and selected as ifire=1. Graphic log at https://repo.or.cz/git-browser/by-commit.html?r=WRF-SFIRE.git
https://wiki.openwfm.org
Other
39 stars 12 forks source link

WRF-CHEM compilation fails cannot find gocart_dust.mod #56

Closed janmandel closed 1 year ago

janmandel commented 1 year ago

Describe the bug Building WRF-Chem fails

To Reproduce Steps to reproduce the behavior:

  1. Use compiler and version gcc 9.2.1 openmpi 4.1.0
  2. Use namelist options N/A
  3. Output is N/A

Expected behavior Build should go through

Screenshots If applicable, add screenshots to help explain your problem.

time mpif90 -o module_isofwd.o -c -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -g -O0 -I../dyn_em -I/data001/projects/jmandel/WRF-SFIRE-chem/external/esmf_time_f90 -I/data001/projects/jmandel/WRF-SFIRE-chem/main -I/data001/projects/jmandel/WRF-SFIRE-chem/external/io_netcdf -I/data001/projects/jmandel/WRF-SFIRE-chem/external/io_int -I/data001/projects/jmandel/WRF-SFIRE-chem/frame -I/data001/projects/jmandel/WRF-SFIRE-chem/share -I/data001/projects/jmandel/WRF-SFIRE-chem/phys -I/data001/projects/jmandel/WRF-SFIRE-chem/wrftladj -I/data001/projects/jmandel/WRF-SFIRE-chem/chem -I/data001/projects/jmandel/WRF-SFIRE-chem/inc -I/shared/netcdf/include module_isofwd.f90 module_mosaic_addemiss.f90:2029:6:

2029 | USE gocart_dust, ONLY: source_du | 1 Fatal Error: Cannot open module file 'gocart_dust.mod' for reading at (1): No such file or directory compilation terminated.

But the file exists at the expected location

[jmandel@math-alderaan WRF-SFIRE-chem]$ ls -l /data001/projects/jmandel/WRF-SFIRE-chem/chem/gocart_dust.mod -rw-r--r-- 1 jmandel domain users 23907 Dec 4 18:33 /data001/projects/jmandel/WRF-SFIRE-chem/chem/gocart_dust.mod

janmandel commented 1 year ago

Copying the failing line in terminal and running from command line works fine

[jmandel@math-alderaan WRF-SFIRE-chem]$ cd chem [jmandel@math-alderaan chem]$ time mpif90 -o module_isofwd.o -c -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -g -O0 -I../dyn_em -I/data001/projects/jmandel/WRF-SFIRE-chem/external/esmf_time_f90 -I/data001/projects/jmandel/WRF-SFIRE-chem/main -I/data001/projects/jmandel/WRF-SFIRE-chem/external/io_netcdf -I/data001/projects/jmandel/WRF-SFIRE-chem/external/io_int -I/data001/projects/jmandel/WRF-SFIRE-chem/frame -I/data001/projects/jmandel/WRF-SFIRE-chem/share -I/data001/projects/jmandel/WRF-SFIRE-chem/phys -I/data001/projects/jmandel/WRF-SFIRE-chem/wrftladj -I/data001/projects/jmandel/WRF-SFIRE-chem/chem -I/data001/projects/jmandel/WRF-SFIRE-chem/inc -I/shared/netcdf/include module_isofwd.f90

Wall Time 0m1.234s User Mode 0m1.123s Kernel Mode 0m0.066s CPU Usage 96.39%