-
Notifications
You must be signed in to change notification settings - Fork 118
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
Array size mismatch in atmosphere.F90 #34
Comments
This is a poor programming choice as the behavior will be compiler dependent. Traditionally there has been nothing in the standard about implied loops and whether the extents are right hand defined or left hand defined. Regardless, the qtend array is explicity defined to have a length of 4, because is is supposed to contain only the water vapor + 3 condensate species as defined for AM3/AM4. Does this need to be fixed for 2020.02 or can it wait for another release? |
Hi, Tom, Rusty. S-J *always* encouraged explicit loops when doing an array
assignment unless the assignment is to a single value.
Lucas
…On Mon, Apr 27, 2020 at 2:17 PM bensonr ***@***.***> wrote:
This is a poor programming choice as the behavior will be compiler
dependent. Traditionally there has been nothing in the standard about
implied loops and whether the extents are right hand defined or left hand
defined. Regardless, the qtend array is explicity defined to have a length
of 4, because is is supposed to contain only the water vapor + 3 condensate
species as defined for AM3/AM4.
Does this need to be fixed for 2020.02 or can it wait for another release?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMUQRVBVE5MZYEVMZN3AXQTROXDZXANCNFSM4MSAMBQA>
.
|
As this logic is purely for a diagnostic added by the physics team and only affects the GFDL driver, I will fix this change for the GNU compiler. Look for a coming PR for you to approve. |
This can wait, but it is needed for running with gfortran |
- add additional include flags for GNU compiler (fixes NOAA-EMC#31) - bugfix in `model/multi_gases.F90`: add missing import (use) statements
…e-namespace Use GFE Namespace
When I run AM4 with the gnu compiler on gaea (prod), I encounter an error with an invalid reference to memory. When running in debug mode, the following error occurs:
This happens on line 437 of driver/GFDL/atmosphere.F90
Are
qtend
andAtm(mygrid)%q
supposed to be the same size?The text was updated successfully, but these errors were encountered: