Changeset 23989


Ignore:
Timestamp:
06/05/19 10:23:04 (6 years ago)
Author:
dmenemen
Message:

attempting to run coupled MITgcm/ISSM (step 11)
crashes on initialization

File:
1 edited

Legend:

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

    r23988 r23989  
    345345                  md.initialization.pressure=md.results.TransientSolution(end).Pressure;
    346346                  md.transient.isoceancoupling=1;
    347                   md.transient.isgroundingline=1;
     347                  md.transient.isgroundingline=0;
    348348                  md.masstransport.requested_outputs={'default','BasalforcingsFloatingiceMeltingRate'};
    349349
     
    359359        !\mkdir run
    360360        !\cp ../MITgcm/build/mitgcmuv run
    361         !\cp ../MITgcm/input/* run
    362 
    363         % initial salinity
    364         S=iniSalt*ones(Nx,Ny,Nz);
    365         writebin('run/Salt.bin',S);
    366 
    367         % initial temperature
    368         T=iniTheta*ones(Nx,Ny,Nz);
    369         writebin('run/Theta.bin',T);
    370 
    371         % initial velocity
    372         Z=zeros(Nx,Ny,Nz);
    373         writebin('run/Uvel.bin',Z);
    374         writebin('run/Vvel.bin',Z);
    375 
    376         % initial sea surface height
    377         Z=zeros(Nx,Ny);
    378         writebin('run/Etan.bin',Z);
    379 
    380         % salinity boundary conditions
    381         S=obcSalt*ones(Ny,Nz);
    382         thk=delZ*ones(Nz,1);
    383         bot=cumsum(thk);
    384         ik=find(bot<=mlDepth);
    385         S(:,ik)=mlSalt;
    386         writebin('run/OBs.bin',S);
    387 
    388         % temperature boundary conditions
    389         T=obcTheta*ones(Ny,Nz);
    390         T(:,ik)=mlTheta;
    391         writebin('run/OBt.bin',T);
    392 
    393         % zonal velocity boundary conditions
    394         U=obcUvel*ones(Ny,Nz);
    395         writebin('run/OBu.bin',U);
    396 
    397         % zero boundary conditions
    398         Z=zeros(Ny,Nz);
    399         writebin('run/zeros.bin',Z);
    400 
    401         % build parameter file data.obcs
    402         fidi=fopen('../MITgcm/input/data.obcs','r');
    403         fido=fopen('run/data.obcs','w');
    404         tline = fgetl(fidi);
    405         fprintf(fido,'%s\n',tline);
    406         while 1
    407             tline = fgetl(fidi);
    408             if ~ischar(tline), break, end
    409             %do the change here:
    410             if strcmpi(tline,' OB_Iwest = 40*1,'),
    411                 fprintf(fido,'%s%i%s\n',' OB_Iwest = ',Ny,'*1,');
    412                 continue;
    413             end
    414             if strcmpi(tline,' OB_Ieast = 40*-1,'),
    415                 fprintf(fido,'%s%i%s\n',' OB_Ieast = ',Ny,'*-1,');
    416                 continue;
    417             end
    418             fprintf(fido,'%s\n',tline);
    419         end
    420         %close  files
    421         fclose(fidi);
    422         fclose(fido);
    423 
    424         %save bathymetry and bedrock in run directory
    425         writebin('run/bathymetry.bin',bathymetry);
    426         writebin('run/icetopo.bin',draft);
     361        !\cp ../MITgcm/install_dngoldberg/verification/shelfice_remeshing/input/* run
    427362        % }}}
    428363        % {{{ generate MITgcm parameter file data
Note: See TracChangeset for help on using the changeset viewer.