Changeset 24465
- Timestamp:
- 12/10/19 21:44:25 (5 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/pfe.m
r23109 r24465 165 165 for i=1:numel(cluster.modules), fprintf(fid,['module load ' cluster.modules{i} '\n']); end 166 166 fprintf(fid,'export PATH="$PATH:."\n\n'); 167 fprintf(fid,'export MPI_LAUNCH_TIMEOUT=520\n'); 167 168 fprintf(fid,'export MPI_GROUP_MAX=64\n\n'); 168 169 fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME … … 170 171 fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,dirname); 171 172 if ~isvalgrind, 172 fprintf(fid,' mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);173 fprintf(fid,'/u/scicon/tools/bin/several_tries mpiexec -np %i /u/scicon/tools/bin/mbind.x -cs -n%i %s/%s %s %s %s\n',cluster.np,cluster.cpuspernode,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 173 174 else 174 175 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); -
issm/trunk-jpl/src/m/classes/model.m
r24134 r24465 253 253 if ~isnan(md.inversion.vy_obs), md.inversion.vy_obs=project2d(md,md.inversion.vy_obs,md.mesh.numberoflayers); end; 254 254 if ~isnan(md.inversion.vel_obs), md.inversion.vel_obs=project2d(md,md.inversion.vel_obs,md.mesh.numberoflayers); end; 255 if ~isnan(md.inversion.thickness_obs), md.inversion.thickness_obs=project2d(md,md.inversion.thickness_obs,md.mesh.numberoflayers); end; 255 256 if ~isnan(md.inversion.cost_functions_coefficients), md.inversion.cost_functions_coefficients=project2d(md,md.inversion.cost_functions_coefficients,md.mesh.numberoflayers); end; 256 257 if numel(md.inversion.min_parameters)>1, md.inversion.min_parameters=project2d(md,md.inversion.min_parameters,md.mesh.numberoflayers); end; -
issm/trunk-jpl/src/m/classes/model.py
r24261 r24465 741 741 if not np.isnan(md.inversion.vel_obs).all(): 742 742 md.inversion.vel_obs = project2d(md, md.inversion.vel_obs, md.mesh.numberoflayers) 743 if not np.isnan(md.inversion.thickness_obs).all(): 744 md.inversion.thickness_obs = project2d(md, md.inversion.thickness_obs, md.mesh.numberoflayers) 743 745 if not np.isnan(md.inversion.cost_functions_coefficients).all(): 744 746 md.inversion.cost_functions_coefficients = project2d(md, md.inversion.cost_functions_coefficients, md.mesh.numberoflayers) -
issm/trunk-jpl/src/m/classes/qmu.m
r24439 r24465 25 25 vertex_weight = NaN; 26 26 end 27 methods (Static) 28 function self = loadobj(self) % {{{ 29 % This function is directly called by matlab when a model object is 30 % loaded. If the input is a struct it is an old version of this class and 31 % old fields must be recovered (make sure they are in the deprecated 32 % model properties) 33 34 if verLessThan('matlab','7.9'), 35 disp('Warning: your matlab version is old and there is a risk that load does not work correctly'); 36 disp(' if the model is not loaded correctly, rename temporarily loadobj so that matlab does not use it'); 37 38 % This is a Matlab bug: all the fields of md have their default value 39 % Example of error message: 40 % Warning: Error loading an object of class 'model': 41 % Undefined function or method 'exist' for input arguments of type 'cell' 42 % 43 % This has been fixed in MATLAB 7.9 (R2009b) and later versions 44 end 45 46 if isstruct(self) 47 disp('Recovering qmu from older version'); 48 objstruct = self; 49 self = structtoobj(qmu(),objstruct); 50 51 %2019 Dec 7th 52 if isfield(objstruct,'partition'), self.vpartition = objstruct.partition; end; 53 end 54 55 end% }}} 56 end 27 57 methods 28 58 function self = extrude(self,md) % {{{
Note:
See TracChangeset
for help on using the changeset viewer.