-
Notifications
You must be signed in to change notification settings - Fork 149
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
Data type mismatch in physics/module_sf_noahmplsm.f90 #750
Comments
Thanks for the bug report. Regarding 1. This is one file of many that still needs to be cleaned up. Everything should be Regarding 2. Please do not replace one stone age piece of code ( |
@climbfuji Yes, as you already suggested, i solved the issue in my side by adding |
@climbfuji I am also getting error from following statements in
I think those needs to be fixed by adding |
I don't think that is needed. This is Fortran fixed form (indicated by |
@climbfuji It found that my NOAHMP CMake interface was passing |
@climbfuji okay, my fault. it seems it solved the issue. Sorry for confusion. |
I am sorry that there is still so much legacy code in the repository. All of this should be converted to "modern" Fortran, following formatting and coding standards, declaring the real kinds correctly etc. But glad to hear it is working (for now). |
@climbfuji sorry but just for your record. |
@climbfuji BTW, it seems that there is something wrong with the |
Now I am confused. I see in that file (line 1024) that it is called with 17 arguments:
Later, in line 1461, the definition of
|
@climbfuji Okay. I think I understand the issue in here. Both |
@climbfuji The arguments of |
@uturuncoglu If you are making changes to the code to fix any of the issues that you have come across, please create a PR so that we also get those bug fixes in. Thanks a lot! |
@climbfuji Sure. Let me work on it. BTW, It is just a part of the CCPP/physics that I am using for external NoahMP land component but it is better than nothing. |
@climbfuji I created a PR: #755 |
Description
There are couple of data type inconsistency in the
module_sf_noahmplsm.f90
file, which is raised when I compile that file outside of the CCPP since I was trying to define NoahMP as a separate land component under UFS. One of the compiler error is something like following,Specifically, the
subroutine energy()
call inphysics/module_sf_noahmplsm.f90
uses real data type for following variables (around line 1601,tauss ,laisun ,laisha ,rb ,errmsg ,errflg,
) but if you trace it to the actual callcall energy
around line 756, those variables are defined asreal(kind=kind_phys)
.I also need to change
alog
function calls todlog
(the double precision one) in the following statement (around line 5871,subroutine frh2o
) to be able to compile.Steps to Reproduce
Try to compile
module_sf_noahmplsm.f90
outside of CCPP.Additional Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Output
Please include any relevant log files, screenshots or other output here.
The text was updated successfully, but these errors were encountered: