Closed WenMeng-NOAA closed 5 months ago
Here are suggestions from @DusanJovic-NOAA 👍
I think the message you see is just a warning not an error. The warning just says that temporary arrays are created before passing them to the subroutine. Creating a lot of temporary arrays can be expensive. The real question is why we see all these warnings now and not before. And I think that's because the compiler flags are changed here:
"-check all" is more strict than the previous warning flags. I'm sure you will also see an increased number of runtime warnings in standalone upp runs. Check the stderr/stdout file in the regression test for example.
One way to avoid all these warnings is to either revert to old (current) compiler flags. or add "-check noarg_temp_created" after "-check all".
Wen ran the single test "rap_clm_lake_debug" in ufs-weather-model with Dusan's fix. The test was successfully completed.
The inline post failed at ufs-weather-model debug mode (here).