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

error on compile sandy #309

Open
huanghu996 opened this issue Sep 1, 2024 · 1 comment
Open

error on compile sandy #309

huanghu996 opened this issue Sep 1, 2024 · 1 comment

Comments

@huanghu996
Copy link

master.f90(368): error #6633: The type of the actual argument differs from the type of the dummy argument. [MYCOMM]
CALL wrf_init (MyCOMM)
-----------------------^

I encountered an issue while compiling Sandy using the h files from the Sandy example. The compilers I am using are icx, icpx, and ifx. I tried adding the compilation parameter -fallow-argument-mismatch, but it doesn’t seem to have any effect. Thank you for helping me resolve this issue

@jcwarner-usgs
Copy link
Collaborator

in Master/mct_driver.h we have
integer :: MyColor, MyCOMM, MyError, MyKey, Nnodes
...
CALL wrf_init (MyCOMM)

in module_wrf_top we have
#ifdef WRF_COUPLING
SUBROUTINE wrf_init( MyCOMM, no_init1 )
....
integer, intent(in) :: MyCOMM

I found this online searching for ifx error 6633

https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-solve-error-6633-in-fixed-format/td-p/1068691
"The error can be removed by adding the directive:"!DEC$ ATTRIBUTES NO_ARG_CHECK :: dummy_arg_name""

but i am not sure if that is for visual fotran.

maybe try this
integer, pointer, intent(in) :: MyCOMM

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