Changeset 27531
- Timestamp:
- 01/19/23 06:55:38 (2 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 5 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBarma.py
r27484 r27531 20 20 self.polynomialparams = np.nan 21 21 self.ar_order = 0 22 self.ma_order = 0 22 23 self.arlag_coefs = np.nan 23 24 self.ma_order = 0 … … 29 30 self.elevationbins = np.nan 30 31 self.refelevation = np.nan 32 self.datebreaks = np.nan 31 33 self.steps_per_step = 1 32 34 self.averaging = 0 -
issm/trunk-jpl/src/m/classes/clusters/pace.m
r27262 r27531 9 9 properties (SetAccess=public) 10 10 % {{{ 11 name = 'login-phoenix- 4.pace.gatech.edu' %Phoenix cluster name11 name = 'login-phoenix-slurm.pace.gatech.edu' %Phoenix cluster name 12 12 login = ''; %personal login 13 13 numnodes = 1; %number of nodes requested … … 17 17 queue = 'inferno'; %queue 18 18 time = 60; %time requested per run [minutes] 19 accountname = ' GT-arobel3-atlas'; %group account name19 accountname = 'gts-arobel3-atlas'; %group account name 20 20 codepath = ''; %path to issm binaries 21 21 executionpath = ''; %path for execution folder … … 62 62 fid=fopen([modelname '.queue'],'w'); 63 63 fprintf(fid,'#!/bin/sh\n'); 64 fprintf(fid,'#PBS -l walltime=%i\n',cluster.time*60); %conversion of walltime from minutes to seconds.65 fprintf(fid,'#PBS -N %s\n',modelname);66 fprintf(fid,'#PBS -l nodes=1:ppn=%i\n',cluster.np);67 fprintf(fid,'#PBS -l pmem=%igb\n',cluster.mem);68 fprintf(fid,'#PBS -q %s\n',cluster.queue);69 fprintf(fid,'#PBS -A %s\n',cluster.accountname);70 71 fprintf(fid,'#PBS -o %s/%s/%s.outlog \n',cluster.executionpath,dirname,modelname);72 fprintf(fid,'#PBS -e %s/%s/%s.errlog \n\n',cluster.executionpath,dirname,modelname);73 64 74 fprintf(fid,'export PBS_O_WORKDIR=%s\n',[cluster.executionpath '/' dirname]); 75 fprintf(fid,'cd $PBS_O_WORKDIR\n'); 76 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s \n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 65 fprintf(fid,'#SBATCH -t%i\n',cluster.time); 66 fprintf(fid,'#SBATCH -J%s\n',modelname); 67 fprintf(fid,'#SBATCH -N 1 --ntasks-per-node=%i\n',cluster.np); 68 %fprintf(fid,'#SBATCH -N %i\n',cluster.numnodes); 69 %fprintf(fid,'#SBATCH --ntasks=1\n'); 70 %fprintf(fid,'#SBATCH --cpus-per-task=%i\n',cluster.np); 71 fprintf(fid,'#SBATCH --mem-per-cpu=%iG\n',cluster.mem); 72 fprintf(fid,'#SBATCH -p%s\n',cluster.queue); 73 fprintf(fid,'#SBATCH -A %s\n',cluster.accountname); 74 fprintf(fid,'#SBATCH -o%s/%s/%s.outlog \n',cluster.executionpath,dirname,modelname); 75 fprintf(fid,'#SBATCH -e%s/%s/%s.errlog \n\n',cluster.executionpath,dirname,modelname); 76 fprintf(fid,'export SLURM_SUBMIT_DIR=%s\n',[cluster.executionpath '/' dirname]); 77 fprintf(fid,'cd $SLURM_SUBMIT_DIR\n'); 78 fprintf(fid,'export LD_LIBRARY_PATH=/opt/slurm/current/lib:/opt/pmix/current/lib:$LD_LIBRARY_PATH \n'); 79 fprintf(fid,'srun --mpi=pmi2 -n %i %s/%s %s %s %s \n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 77 80 78 81 fclose(fid); … … 97 100 disp('launching solution sequence on remote cluster'); 98 101 if ~isempty(restart) 99 launchcommand=['cd ' cluster.executionpath ' && cd ' dirname ' && qsub' modelname '.queue '];102 launchcommand=['cd ' cluster.executionpath ' && cd ' dirname ' && sbatch ' modelname '.queue ']; 100 103 else 101 104 launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' dirname ' && mkdir ' dirname ... 102 ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz && qsub' modelname '.queue '];105 ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz && sbatch ' modelname '.queue ']; 103 106 end 104 107 issmssh(cluster.name,cluster.login,cluster.port,launchcommand); -
issm/trunk-jpl/src/m/classes/hydrologyarmapw.m
r27480 r27531 18 18 malag_coefs = NaN; 19 19 datebreaks = NaN; 20 requested_outputs = {}; 20 21 end 21 22 methods … … 184 185 WriteData(fid,prefix,'data',dbreaks,'name','md.hydrology.datebreaks','format','DoubleMat','scale',yts); 185 186 WriteData(fid,prefix,'data',tempmonthlyfactors,'name','md.hydrology.monthlyfactors','format','DoubleMat'); 186 WriteData(fid,prefix,'data',{'FrictionWaterPressure'},'name','md.hydrology.requested_outputs','format','StringArray'); 187 188 %process requested outputs 189 outputs = self.requested_outputs; 190 pos = find(ismember(outputs,'default')); 191 if ~isempty(pos), 192 outputs(pos) = []; %remove 'default' from outputs 193 outputs = [outputs defaultoutputs(self,md)]; %add defaults 194 end 195 WriteData(fid,prefix,'data',outputs,'name','md.hydrology.requested_outputs','format','StringArray'); 187 196 end % }}} 188 197 end -
issm/trunk-jpl/src/m/classes/stochasticforcing.py
r27484 r27531 79 79 structstoch = self.structstochforcing() 80 80 # Check if hydrologyarmapw is used 81 if type(md.hydrology).__name__ == 'hydrologyarmapw' and md.transient.ishydrology:81 if((type(md.hydrology).__name__ == 'hydrologyarmapw') and md.transient.ishydrology==1): 82 82 ispwHydroarma = 1 83 83 else: … … 241 241 md.stochasticforcing.stochastictimestep = md.timestepping.time_step #by default: stochastictimestep set to ISSM time step 242 242 # Check if hydroarmapw is used 243 if type(md.hydrology).__name__ == 'hydrologyarmapw' and md.transient.ishydrology:243 if((type(md.hydrology).__name__ == 'hydrologyarmapw') and md.transient.ishydrology==1): 244 244 ispwHydroarma = 1 245 245 else: -
issm/trunk-jpl/src/m/contrib/morlighem/modeldata/interpBedmachineGreenland.m
r27277 r27531 45 45 ['/Users/larour/ModelData/BedMachine/' basename '-' ncdate '.nc'],... 46 46 ['./' basename '-' ncdate '.nc'],... 47 '/media/vincent/TOSH4TB/GeorgiaTech/DataSearch/BedMachine/BedMachineGreenland-2021-04-20.nc',... 47 48 }; 48 49 … … 89 90 if strcmp(string,'mask') | strcmp(string,'source'), 90 91 %Need nearest neighbor to avoid interpolation between 0 and 2 91 output = InterpFromGrid(xdata,ydata,data,double(X),double(Y),'nearest'); 92 %output = InterpFromGrid(xdata,ydata,data,double(X),double(Y),'nearest'); 93 output = InterpFromGridToMesh(xdata,flipud(ydata),flipud(data),double(X),double(Y),NaN); %VV 92 94 else 93 output = InterpFromGrid(xdata,ydata,data,double(X),double(Y)); 95 %output = InterpFromGrid(xdata,ydata,data,double(X),double(Y)); 96 output = InterpFromGridToMesh(xdata,flipud(ydata),flipud(data),double(X),double(Y),NaN); %VV 94 97 end 95 98 -
issm/trunk-jpl/src/m/contrib/morlighem/modeldata/interpSeaRISE.m
r27277 r27531 58 58 searisenc='/totten_1/ModelData/SeaRISE/Antarctica_5km_dev1.0.nc'; 59 59 end 60 case {'vincentxps159500'} 61 if hemisphere==1 62 searisenc = '/media/vincent/TOSH4TB/GeorgiaTech/ISSM/fromSeroussi/GrIS04Feb2022/seariseData/Greenland_5km_dev1.2.nc'; 63 end 60 64 otherwise 61 65 error('hostname not supported yet'); … … 80 84 if verbose, disp([' -- SeaRISE: interpolating ' string]); end 81 85 if strcmpi(string,'LandMask'); 82 dataout = InterpFromGrid(xdata,ydata,data,xproj,yproj,'nearest'); 86 %dataout = InterpFromGrid(xdata,ydata,data,xproj,yproj,'nearest'); 87 dataout = InterpFromGridToMesh(xdata,ydata,data,xproj,yproj,NaN); %VV 83 88 else 84 dataout = InterpFromGrid(xdata,ydata,data,xproj,yproj); 89 %dataout = InterpFromGrid(xdata,ydata,data,xproj,yproj); 90 dataout = InterpFromGridToMesh(xdata,ydata,data,xproj,yproj,NaN); %VV 85 91 end 86 92 dataout = reshape(dataout,size(X,1),size(X,2));
Note:
See TracChangeset
for help on using the changeset viewer.