Ignore:
Timestamp:
10/10/23 12:58:04 (7 months ago)
Author:
omamce
Message:

O.M. :

New version of WATER_BUDGET

  • Conservation in NEMO are OK
  • Conservation in Sechiba are OK, for both ICO and latlon grids
  • Problems in atmosphere, LIC surface and ocean/atmosphere coherence
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/WATER_BUDGET/WaterUtils.py

    r6620 r6647  
    7070def unDefined (char) : 
    7171    '''True if a variable is not defined, or set to None''' 
    72     if char in locals () : 
    73         if locals()[char] == None : unDefined = True 
     72    if char in globals () : 
     73        if globals()[char] == None : 
     74                unDefined = True 
    7475        else            : unDefined = False 
    7576    else                : unDefined = True 
     
    7980    '''True if a variable is defined and not equal to None''' 
    8081    if char in globals () : 
    81         if globals()[char] == None : Defined = False 
     82        if globals()[char] == None : 
     83                Defined = False 
    8284        else            : Defined = True 
    8385    else                : Defined = False 
Note: See TracChangeset for help on using the changeset viewer.