Changeset 4290


Ignore:
Timestamp:
02/22/19 14:43:38 (5 years ago)
Author:
jgipsl
Message:

Set iflag_phys correctly even though it will not be used for the case create_etat0_limit=n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/dynamico.driver

    r4288 r4290  
    3434    # Change run_dynamico.def according to UserChoices options set in dynmaico.card 
    3535     
    36     # Activate create_etat0_limit 
     36    # Set create_etat0_limit=y or n and  
    3737    if [ X${dynamico_UserChoices_create_etat0_limit} = Xy ] ; then  
    3838        # create_etat0_limit is set in dynamcio.card to y 
     39        # Activate create_etat0_limit=y in run_dynamico.def 
    3940        IGCM_comp_modifyDefFile nonblocker run_dynamico.def create_etat0_limit y 
    4041 
     
    5051        fi 
    5152    else 
    52         # Deactivate create_etat0_limit 
     53        # Deactivate create_etat0_limit to run a the GCM (aquaplanet or not) 
    5354        IGCM_comp_modifyDefFile nonblocker run_dynamico.def create_etat0_limit   n 
    5455        IGCM_comp_modifyDefFile nonblocker run_dynamico.def etat0                start_file 
    55         # iflag_phys is read but not used when running with DYNAMCIO and create_etat0_limit=n 
    56         IGCM_comp_modifyDefFile nonblocker run_dynamico.def iflag_phys           1 
     56 
     57        # Set iflag_phys even though it only will be read but not used for the case create_etat0_limit=n 
     58        if [ X${dynamico_UserChoices_iflag_phys} = X ] ||  X${dynamico_UserChoices_iflag_phys} = X1 ]; then  
     59            # iflag_phys is not set or iflag_phys=1 => run is not an aquaplanet 
     60            IGCM_comp_modifyDefFile nonblocker run_dynamico.def iflag_phys           1 
     61        else 
     62            IGCM_comp_modifyDefFile nonblocker run_dynamico.def iflag_phys         ${dynamico_UserChoices_iflag_phys} 
     63        fi 
    5764    fi  
    5865 
Note: See TracChangeset for help on using the changeset viewer.