Skip to content
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

compilation error #15

Open
mostafaeshimy007 opened this issue Mar 5, 2023 · 2 comments
Open

compilation error #15

mostafaeshimy007 opened this issue Mar 5, 2023 · 2 comments

Comments

@mostafaeshimy007
Copy link

when I do the setup of the model I got it error.
I'm using gfortran compiler.
can I get help to solve this problem please?
130 | nd=check_real(g1%plat,g2%plat,1,1)
| 2
......
142 | nd=check_real(g1%xtn,g2%xtn,g1%nxp,g2%nxp)
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
/wrf/RAMS-main/src/memory/grid_struct.f90:148:14:

130 | nd=check_real(g1%plat,g2%plat,1,1)
| 2
......
148 | nd=check_real(g1%ytn,g2%ytn,g1%nyp,g2%nyp)
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
make: *** [Makefile:25: rams-.a(/wrf/RAMS-main/src/memory/grid_struct.o)] Error 1

@smsaleeb
Copy link
Member

We have not experimented lately with RAMS and gfortran. We typically make sure it works with Intel (ifort) and PGI (pgf90) compilers as well as "mpif90". These work well on our local machines as well as on HPC center machines. Also, in former versions of RAMS that we tested with gfortran, the gfortran executable ran much, much slower than that compiled with "ifort" or "pgf90".

@mostafaeshimy007
Copy link
Author

when I'm using ifort compiler I'm getting the error

/opt/intel/oneapi/compiler/latest/linux/bin/intel64/ifort -o rams- ./rammain.o -free -O2 -fp-model precise rams-.a
-L/home/mostafa/WRF/Libs/grib2/lib -lhdf5_hl -lhdf5 -L/home/mostafa/WRF/Libs/MPICH/lib -lmpich -lmpl
ld: /opt/intel/oneapi/compiler/2023.0.0/linux/bin/intel64/../../bin/intel64/../../lib/icx-lto.so: error loading plugin: libimf.so: cannot open shared object file: No such file or directory
make: *** [Makefile:224: rams-] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants