Changeset 21129


Ignore:
Timestamp:
08/10/16 13:57:55 (9 years ago)
Author:
glperez
Message:

FIX: Runme step changed to steps
FIX: jenkins script IceFlow to Iceflow

Location:
issm/trunk-jpl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/examples/Pig/runme.m

    r21128 r21129  
    1 step=[1];
     1steps=[1];
    22
    3 if any(step==1)   %Mesh Generation #1
     3if any(steps==1)   %Mesh Generation #1
    44        %Mesh parameters
    55        domain =['./DomainOutline.exp'];
     
    5757end
    5858
    59 if any(step==2)  %Masks #2
     59if any(steps==2)  %Masks #2
    6060
    6161        md = loadmodel('./Models/PIG_Mesh_generation');
     
    8686end
    8787
    88 if any(step==3)  %Parameterization #3
     88if any(steps==3)  %Parameterization #3
    8989
    9090        md = loadmodel('./Models/PIG_SetMask');
     
    9898end
    9999
    100 if any(step==4)  %Control Method #4
     100if any(steps==4)  %Control Method #4
    101101
    102102        md = loadmodel('./Models/PIG_Parameterization');
     
    104104        % Control general
    105105        md.inversion.iscontrol=1;
    106         md.inversion.maxsteps=20;
     106        md.inversion.maxstepss=20;
    107107        md.inversion.maxiter=40;
    108108        md.inversion.dxmin=0.1;
     
    141141end
    142142
    143 if any(step==5) %Plot #5
     143if any(steps==5) %Plot #5
    144144
    145145        md = loadmodel('./Models/PIG_Control_drag');
     
    158158end
    159159
    160 if any(step==6)  %Higher-Order #6
     160if any(steps==6)  %Higher-Order #6
    161161
    162162        % Load Model
     
    174174end
    175175
    176 if any(step==7)  %Plot #7
     176if any(steps==7)  %Plot #7
    177177
    178178        mdHO = loadmodel('./Models/PIG_ModelHO');
  • issm/trunk-jpl/examples/PigSensitivity/runme.m

    r21128 r21129  
    1 step=[1];
     1steps=[1];
    22
    3 if any(step==1) %Transient Run #1
     3if any(steps==1) %Transient Run #1
    44
    55        md = loadmodel('../Pig/Models/PIG_Control_drag');       
     
    2626end
    2727
    28 if any(step==2) %High Melt #2
     28if any(steps==2) %High Melt #2
    2929        md = loadmodel('./Models/PIG_Transient');       
    3030
     
    4141end
    4242
    43 if any(step==3) %Ice Front retreat
     43if any(steps==3) %Ice Front retreat
    4444        md = loadmodel('./Models/PIG_Transient');       
    4545
     
    6060end
    6161
    62 if any(step==4) %High surface mass balance #3
     62if any(steps==4) %High surface mass balance #3
    6363        %Load model
    6464
  • issm/trunk-jpl/jenkins/jenkins.sh

    r21128 r21129  
    356356                        then
    357357                                $SED -i.bak 's/steps=\[1\];/steps=\[1:5\];\n\ntry\n/' $FILE
    358                         elif [ "${dir}" == "./IceFlowModels" ];
     358                        elif [ "${dir}" == "./IceflowModels" ];
    359359                        then
    360360                                # Almost nothing to this example
     361                                $SED -i.bak '1 s/^.*$/try\n\n&/' $FILE
     362                        elif [ "${dir}" == "./ISMIP" ];
     363                        then
     364                                # Eight steps... none of which are implmented in the script...
    361365                                $SED -i.bak '1 s/^.*$/try\n\n&/' $FILE
    362366                        elif [ "${dir}" == "./Inversion" ];     
     
    388392                        then
    389393                                $SED -i.bak 's/steps=\[1\];/steps=\[1:7\];\n\ntry\n/' $FILE
     394                        elif [ "${dir}" == "./Data" ]; 
     395                        then
     396                                echo "Data directory is used by examples. No modifications required."
    390397                        else
    391398                                echo "Not implemented yet!"
Note: See TracChangeset for help on using the changeset viewer.