-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPS compile :Syntax error in argument list #259
Comments
@aganji2 Did you compile WRF first? |
Yes, I compiled for em_real (3d real case) and em_quarter_ss (3d ideal case); it was successful, and all the required exe files were generated. I copied the last part of the log file here: build started: Sun Sep 22 20:22:49 EDT 2024 ---> Executables successfully built <--- -rwxr-x--- 1 ganjiarm mhatzo 44406136 Sep 22 20:21 main/ideal.exe |
@aganji2 I tried with gcc 13.2.0 on our system, and it compiles WPS just fine. So not sure yet what your problem is. |
The error arises when trying to call the mprintf subroutine, specifically with the string that is being split across two lines. The continuation character & is intended to indicate that the statement continues on the next line, but the compiler is not recognizing the syntax correctly. for Example for Is there any flag that I have to add for compilation? I copied configure.wps here: COMPRESSION_LIBS = -L/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/LIBRARIES/grib2/lib -ljasper -lpng -lz |
@aganji2 Which compile option did you choose when you typed 'configure'? Can you show me the option line? |
I tested both 1 and 3:
|
@aganji2 Did you install the grib2 library separately from compiling WPS? |
I installed it from /home/m/mhatzo/ganjiarm/models/MainModel/WRFmodel/LIBRARIES/jasper-1.900.1 before WPS compiling using this command: ./configure --prefix=/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/LIBRARIES/grib2 |
@aganji2 Can you first do 'clean -a' to remove all built code, and then do 'configure --build-grib2-libs' ? This will build grib2/png/zlib libraries from the code included from the WPS tar file. I wonder if the newer grib2 code downloaded is newer than what we support in WPS. |
I used the command in the WPS folder, and got the same error types for mprintf subroutine (please see below). However the number of options for compile reduced: 797 | call mprintf(.true., INFORM, 'Could not find interpolator sequence for requested resolution '// & (py38WRF) ganjiarm@nia-login02:~/models/MainModel/WRFmodel/WPS$ ./configure --build-grib2-libs The zlib, libpng, and JasPer libraries will be compiled from source and The environment variables JASPERLIB and JASPERINC will be ignored. Please select from among the following supported platforms.
Enter selection [1-22] : 2Configuration successful. To build the WPS, type: compileTesting for NetCDF, C and Fortran compiler This installation NetCDF is 64-bit |
@aganji2 Let's wait for others to comment. |
I am trying to compile WPS, but I got the error below.
==============================================================================================
Version 4.6.0
Linux nia-login02.scinet.local 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
GNU Fortran (GCC) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
==============================================================================================
**** Compiling WPS and all utilities ****
make[1]: Entering directory `~/WRFmodel/WPS/geogrid/src'
/bin/rm -f module_debug.o module_debug.mod
/scinet/niagara/software/2019b/opt/base/gcc/13.2.0/bin/cpp -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_netcdf -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_grib_share -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_grib1 -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_int -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/inc -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/LIBRARIES/netcdf/include module_debug.F > module_debug.f90
mpif90 -ffree-form -O -fconvert=big-endian -frecord-marker=4 -fallow-argument-mismatch -c module_debug.f90 -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_netcdf -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_grib_share -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_grib1 -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_int -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/inc -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/LIBRARIES/netcdf/include
/bin/rm -f gridinfo_module.o gridinfo_module.mod
/scinet/niagara/software/2019b/opt/base/gcc/13.2.0/bin/cpp -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_netcdf -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_grib_share -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_grib1 -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_int -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/inc -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/LIBRARIES/netcdf/include gridinfo_module.F > gridinfo_module.f90
gridinfo_module.F:470:25: warning: missing terminating ' character
470 | ! If the user hasn't supplied a known_x and known_y, assume the center of domain 1
| ^
mpif90 -ffree-form -O -fconvert=big-endian -frecord-marker=4 -fallow-argument-mismatch -c gridinfo_module.f90 -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_netcdf -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_grib_share -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_grib1 -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/external/io_int -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/WPS/../WRF/inc -I/gpfs/fs0/scratch/m/mhatzo/ganjiarm/Models/MainModel/WRFmodel/LIBRARIES/netcdf/include
gridinfo_module.F:308:73:
308 | 'A valid wrf_core must be specified in the namelist. '// &
| 1
Error: Syntax error in argument list at (1)
gridinfo_module.F:309:21:
309 | 'Currently, only "ARW" and "NMM" are supported.')
| 1
Error: Invalid character in name at (1)
gridinfo_module.F:312:73:
The text was updated successfully, but these errors were encountered: