Changeset 18544
- Timestamp:
- 09/26/14 11:07:01 (10 years ago)
- Location:
- issm/trunk-jpl/test
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test4001.m
r18536 r18544 10 10 11 11 presentdirectory=pwd; 12 addpath( [pwd '/../MITgcm/tools']);12 addpath(recursivepath([pwd '/../MITgcm'])); 13 13 14 14 % {{{ Parameters: … … 23 23 dLong=.25; %longitude grid spacing 24 24 dLat=.05; %latitude grid spacing 25 25 delZ=30; %thickness of vertical levels 26 26 icefront_position_ratio=.75; 27 27 ice_thickness=100; … … 29 29 rho_water=1028.14; 30 30 di=rho_ice/rho_water; 31 32 33 34 35 36 37 38 39 40 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) 41 41 42 42 MITgcmDeltaT=600; % MITgcm time step in seconds … … 46 46 start_time=0; % in decimal years 47 47 time_step=1/12; % coupling interval in decimal years 48 49 48 async_step_MITgcm_multiplier=1/30; % used to reduce run time for MItgcm 49 50 50 % bedrock/bathymetry 51 51 hmax=1000; … … 55 55 56 56 % issm settings: 57 higherorder=0;58 57 numlayers=10; 59 58 60 59 savedata(org, Nx, Ny, nPx, nPy, Nz, dLong, dLat, delZ, xgOrigin, ... 61 62 63 64 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); 66 65 end 67 66 % }}} … … 167 166 fclose(fido); 168 167 169 system('./build_mitgcm.sh generic');168 system(['../MITgcm/build.sh generic ' pwd]); 170 169 end 171 170 % }}} … … 177 176 loaddata(org,'Bathymetry'); 178 177 loaddata(org,'IceSheetGeometry'); 179 180 178 endtime = round(MITgcmDeltaT * ... 179 floor(time_step*y2s*async_step_MITgcm_multiplier/MITgcmDeltaT)); 181 180 182 181 % {{{ prepare MITgcm … … 535 534 end 536 535 % }}} 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 end554 555 savemodel(org,md);556 end557 % }}}558 536 % {{{ RunUncoupledISSM: 559 537 if perform(org,'RunUncoupledISSM'), … … 598 576 end 599 577 !\mkdir run 578 disp('-------------- file: test4001.m line: 578'); 600 579 !\cp ../MITgcm/build/mitgcmuv run 580 disp('-------------- file: test4001.m line: 580'); 601 581 !\cp ../MITgcm/input/* run 582 disp('-------------- file: test4001.m line: 582'); 602 583 603 584 %load data:
Note:
See TracChangeset
for help on using the changeset viewer.