ufs-community / ufs-srweather-app

UFS Short-Range Weather Application
Other
55 stars 116 forks source link

[develop] UFS-SRW-AQM Build Errors on WCOSS2 #1112

Open drnimbusrain opened 1 month ago

drnimbusrain commented 1 month ago

Expected behavior

UFS-SRW-AQM [develop] branch should build on WCOSS2.

Current behavior

UFS-SRW-AQM [develop] branch has errors in build on WCOSS2.

Machines affected

WCOSS2

Steps To Reproduce

https://ufs-srweather-app.readthedocs.io/en/develop/UsersGuide/BuildingRunningTesting/AQM.html#quick-start-guide-srw-aqm

git clone -b develop https://github.com/ufs-community/ufs-srweather-app
cd ufs-srweather-app
./app_build.sh -p=wcoss2 -a=ATMAQ --extrn
./manage_externals/checkout_externals
./devbuild.sh -p=wcoss2 -a=ATMAQ

Detailed Description of Fix (optional)

Additional Information (optional)

Possible Implementation (optional)

Output (optional)

/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_netcdf.F90(424): error #6404: This name does not have a type, and must have an explicit type.   [NF90_DEF_VAR_ZSTANDARD]
              ncerr = nf90_def_var_zstandard(ncid, varids(i), zstandard_level(grid_id)) ; if (ncerr /= nf90_noerr) write(0,*) "file: ", "module_write_netcdf.F90", " line: ", 424, trim(nf90_strerror(ncerr));     if (ncerr /= nf90_noerr) call ESMF_Finalize(endflag=ESMF_END_ABORT)
----------------------^
/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_netcdf.F90(443): error #6404: This name does not have a type, and must have an explicit type.   [NF90_DEF_VAR_QUANTIZE]
              ncerr = nf90_def_var_quantize(ncid, varids(i), quant_mode, quantize_nsd(grid_id)) ; if (ncerr /= nf90_noerr) write(0,*) "file: ", "module_write_netcdf.F90", " line: ", 443, trim(nf90_strerror(ncerr));     if (ncerr /= nf90_noerr) call ESMF_Finalize(endflag=ESMF_END_ABORT)
----------------------^
compilation aborted for /lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_netcdf.F90 (code 1)
make[5]: *** [FV3/CMakeFiles/fv3atm.dir/build.make:283: FV3/CMakeFiles/fv3atm.dir/io/module_write_netcdf.F90.o] Error 1
make[5]: *** Waiting for unfinished jobs....
/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_restart_netcdf.F90(385): error #6404: This name does not have a type, and must have an explicit type.   [NF90_DEF_VAR_ZSTANDARD]
            ncerr = nf90_def_var_zstandard(ncid, varids(i), zstandard_level(1))
--------------------^
/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_restart_netcdf.F90(387): error #6404: This name does not have a type, and must have an explicit type.   [NF90_ENOFILTER]
               if (ncerr == nf90_enofilter) then
----------------------------^
compilation aborted for /lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_restart_netcdf.F90 (code 1)
make[5]: *** [FV3/CMakeFiles/fv3atm.dir/build.make:296: FV3/CMakeFiles/fv3atm.dir/io/module_write_restart_netcdf.F90.o] Error 1
^[[Bmake[4]: *** [CMakeFiles/Makefile2:416: FV3/CMakeFiles/fv3atm.dir/all] Error 2

@chan-hoo

chan-hoo commented 1 month ago

@drnimbusrain, I am sorry. I don't have access to WCOSS2 any more (other EPIC code managers as well). This may be the module file issue. The module files have not been updated since I left EMC. Moreover, as far as I know, uwtools was not available on WCOSS2 yet. The develop branch will not work correctly without it.