Changeset 18544


Ignore:
Timestamp:
09/26/14 11:07:01 (10 years ago)
Author:
seroussi
Message:

BUG: trying to fix NR ice ocean

Location:
issm/trunk-jpl/test
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test4001.m

    r18536 r18544  
    1010
    1111presentdirectory=pwd;
    12 addpath([pwd '/../MITgcm/tools']);
     12addpath(recursivepath([pwd '/../MITgcm']));
    1313
    1414% {{{ Parameters:
     
    2323        dLong=.25; %longitude grid spacing
    2424        dLat=.05; %latitude grid spacing
    25         delZ=30; %thickness of vertical levels
     25        delZ=30; %thickness of vertical levels
    2626        icefront_position_ratio=.75;
    2727        ice_thickness=100;
     
    2929        rho_water=1028.14;
    3030        di=rho_ice/rho_water;
    31        
    32         % MITgcm initial and lateral boundary conditions
    33         iniSalt  = 34.4; % initial salinity (PSU)
    34         iniTheta = -1.9; % initial potential temperature (deg C)
    35         obcSalt  = 34.4; % open boundary salinity (PSU)
    36         obcTheta =  1.0; % open boundary potential temperature (deg C)
    37         mlDepth  = 120.; % mixed layer depth (m)
    38         mlSalt   = 33.4; % open boundary salinity (PSU)
    39         mlTheta  = -1.9; % open boundary potential temperature (deg C)
    40         obcUvel  = -0.1; % open boundary velocity (m/s)       
     31
     32        % MITgcm initial and lateral boundary conditions
     33        iniSalt  = 34.4; % initial salinity (PSU)
     34        iniTheta = -1.9; % initial potential temperature (deg C)
     35        obcSalt  = 34.4; % open boundary salinity (PSU)
     36        obcTheta =  1.0; % open boundary potential temperature (deg C)
     37        mlDepth  = 120.; % mixed layer depth (m)
     38        mlSalt   = 33.4; % open boundary salinity (PSU)
     39        mlTheta  = -1.9; % open boundary potential temperature (deg C)
     40        obcUvel  = -0.1; % open boundary velocity (m/s)       
    4141
    4242        MITgcmDeltaT=600; % MITgcm time step in seconds
     
    4646        start_time=0; % in decimal years
    4747        time_step=1/12; % coupling interval in decimal years
    48         async_step_MITgcm_multiplier=1/30; % used to reduce run time for MItgcm
    49        
     48        async_step_MITgcm_multiplier=1/30; % used to reduce run time for MItgcm
     49
    5050        % bedrock/bathymetry
    5151        hmax=1000;
     
    5555
    5656        % issm settings:
    57         higherorder=0;
    5857        numlayers=10;
    5958
    6059        savedata(org, Nx, Ny, nPx, nPy, Nz, dLong, dLat, delZ, xgOrigin, ...
    61                  ygOrigin, icefront_position_ratio, ice_thickness, rho_ice, ...
    62                  rho_water, di, hmax, trough_depth, deltah, sea_level, ...
    63                  iniSalt, iniTheta, obcSalt, obcTheta, mlDepth, mlSalt, ...
    64                  mlTheta, obcUvel, start_time, time_step, MITgcmDeltaT, y2s,...
    65                  higherorder,numlayers,async_step_MITgcm_multiplier);
     60                ygOrigin, icefront_position_ratio, ice_thickness, rho_ice, ...
     61                rho_water, di, hmax, trough_depth, deltah, sea_level, ...
     62                iniSalt, iniTheta, obcSalt, obcTheta, mlDepth, mlSalt, ...
     63                mlTheta, obcUvel, start_time, time_step, MITgcmDeltaT, y2s,...
     64                numlayers,async_step_MITgcm_multiplier);
    6665end
    6766% }}}
     
    167166    fclose(fido);
    168167
    169         system('./build_mitgcm.sh generic');
     168         system(['../MITgcm/build.sh generic ' pwd]);
    170169end
    171170% }}}
     
    177176    loaddata(org,'Bathymetry');
    178177    loaddata(org,'IceSheetGeometry');
    179     endtime = round(MITgcmDeltaT * ...
    180     floor(time_step*y2s*async_step_MITgcm_multiplier/MITgcmDeltaT));
     178        endtime = round(MITgcmDeltaT * ...
     179                floor(time_step*y2s*async_step_MITgcm_multiplier/MITgcmDeltaT));
    181180
    182181    % {{{ prepare MITgcm
     
    535534end
    536535% }}}
    537 % {{{ Extrude:
    538 if perform(org,'Extrude'),
    539        
    540         loaddata(org,'Parameters');
    541         loaddata(org,'ParameterizeIce');
    542 
    543         if higherorder,
    544                 md=extrude(md,numlayers,3);
    545                 md=setflowequation(md,'HO','all');
    546 
    547                 %water needs to be spc'd:
    548                 pos=find(md.mask.ice_levelset>0);
    549                 md.stressbalance.spcvx(pos)=0;
    550                 md.stressbalance.spcvy(pos)=0;
    551                 md.stressbalance.spcvz(pos)=0;
    552                 md.masstransport.spcthickness(pos)=0;
    553         end
    554 
    555         savemodel(org,md);
    556 end
    557 % }}}
    558536% {{{ RunUncoupledISSM:
    559537if perform(org,'RunUncoupledISSM'),
     
    598576        end
    599577        !\mkdir run
     578                  disp('-------------- file: test4001.m line: 578');
    600579        !\cp ../MITgcm/build/mitgcmuv run
     580                  disp('-------------- file: test4001.m line: 580');
    601581        !\cp ../MITgcm/input/* run
     582                  disp('-------------- file: test4001.m line: 582');
    602583
    603584        %load data:
Note: See TracChangeset for help on using the changeset viewer.