Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Error Compiling PREP-SRC-CHEM

Hasaki

New member
When i compiling PREP-CHEM-SRC-1.8.3 ,always this error.
Does anyone know how to fix it? Please!

This is the error code:
cp -f ../../aux_src/brams/rams_grid.f90 rams_grid.f90
gfortran -c -Xpreprocessor -DRADM_WRF_FIM -O2 -fconvert=big-endian -frecord-marker=4 -I../../aux_src/utils/include -I/home/ubuntu/Build_WRF/LIBRARIES/netcdf/include -I/home/ubuntu/Build_WRF/LIBRARIES/hdf5/include rams_grid.f90
rams_grid.f90:45:13:

45 | ,grid_g(ifm)%glat (1,1) ,grid_g(ifm)%glon (1,1) &
| 1
Error: Element of assumed-shape or pointer array passed to array dummy argument ‘glat’ at (1)
rams_grid.f90:52:13:

52 | ,grid_g(ifm)%dxu (1,1) ,grid_g(ifm)%dxv (1,1) &
| 1
Error: Element of assumed-shape or pointer array passed to array dummy argument ‘dxu’ at (1)
rams_grid.f90:62:13:

62 | ,grid_g(ifm)%dxu (1,1) ,grid_g(ifm)%dxv (1,1) &
| 1
Error: Element of assumed-shape or pointer array passed to array dummy argument ‘dxu’ at (1)
rams_grid.f90:74:13:

74 | ,grid_g(ifm)%glat(1,1) ,grid_g(ifm)%glon(1,1) &
| 1
Error: Element of assumed-shape or pointer array passed to array dummy argument ‘glat’ at (1)
rams_grid.f90:88:10:

88 | ,grid_g(ifm)%topt (1,1) ,grid_g(ifm)%topu (1,1) &
| 1
Error: Element of assumed-shape or pointer array passed to array dummy argument ‘topt’ at (1)
rams_grid.f90:93:10:

93 | ,grid_g(ifm)%topt(1,1) ,grid_g(ifm)%topu(1,1) &
| 1
Error: Element of assumed-shape or pointer array passed to array dummy argument ‘topt’ at (1)
make: *** [depend_prepsrc.mk:197:rams_grid.o] error 1
 
Could be the ubuntu 22.04 issue with the flags. Also could be that you may of forgotten to change the paths in the src file.
 

Here is the history of why fallow-argument-mismatch is needed
 
Top