Changeset 2617
- Timestamp:
- 11/05/09 15:12:39 (15 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/QueueJobPeekGeneric.m
r1 r2617 11 11 12 12 %read log files onto fields 13 md.errlog= readfile([md.name '.errlog']);14 md.outlog= readfile([md.name '.outlog']);13 md.errlog=char(textread([md.name '.errlog'],'%s','delimiter','\n')); 14 md.outlog=char(textread([md.name '.outlog'],'%s','delimiter','\n')); 15 15 16 16 %cat those two files -
issm/trunk/src/m/classes/public/geography.m
r2588 r2617 16 16 %some checks on list of arguments 17 17 if ((nargin~=3) | (nargout~=1)), 18 geographyusage();18 help geography 19 19 error('geography error message'); 20 20 end 21 21 if ((~ischar(iceshelfname)) | (~ischar(icesheetname)) ) 22 geographyusage();22 help geography 23 23 error('geography error message'); 24 24 end … … 26 26 if md.counter>=2, 27 27 choice=input('This model already has a geometry. Are you sure you want to go ahead? (y/n)','s'); 28 if ~strcmp(choice,'y') 29 error('no geometry done ... exiting'); 30 end 28 if ~strcmp(choice,'y'), error('no geometry done ... exiting'); end 31 29 else 32 if (md.counter~=1) 33 error('geography error message: you need to run mesh.m first on this model'); 34 else 35 md.counter=2; 36 end 30 if (md.counter~=1), error('geography error message: you need to run mesh.m first on this model'); end 37 31 end 38 32 … … 42 36 elements=md.elements; 43 37 38 %Fist recover arrays of ice shelf grids and elements, and ice sheet grids and elements. 44 39 invert=0; 45 46 %Fist recover arrays of ice shelf grids and elements, and ice sheet grids and elements.47 40 if strcmp(iceshelfname,''), %no iceshelf contour file, we are dealing with a pure ice sheet. 48 41 gridoniceshelf=zeros(md.numberofgrids,1); … … 78 71 79 72 %Return: 73 md.counter=2; 74 80 75 md.elementoniceshelf=elementoniceshelf; 81 76 md.gridoniceshelf=gridoniceshelf; … … 88 83 89 84 %Keep track of input files 90 %if strcmp(iceshelfname,''), md.iceshelfoutline=''; elseif strcmp(iceshelfname,'all'), md.iceshelfoutline='all'; else md.iceshelfoutline=readfile(iceshelfname); end 91 %if strcmp(icesheetname,''), md.icesheetoutline=''; elseif strcmp(icesheetname,'all'), md.icesheetoutline='all'; else md.icesheetoutline=readfile(icesheetname); end 92 93 function geographyusage(), 94 disp('INPUT md=geography(md,iceshelfname,icesheetname)'); 95 disp('geography: establish boundaries between grounded and floating ice.'); 96 disp(' By default, ice is considered grounded. The contour iceshelfname defines grids ');97 disp(' for which ice is floting. The contour icesheetname defines grids inside an iceshelf, '); 98 disp(' that are grounded (ie: ice rises, islands, etc ...)');99 disp(' All input files are in the Argus format (extension .exp'); 85 if (strcmp(iceshelfname,'') | strcmp(iceshelfname,'all')), 86 md.iceshelfoutline=iceshelfname; 87 else 88 md.iceshelfoutline=char(textread(iceshelfname,'%s','delimiter','\n')); 89 end 90 if (strcmp(icesheetname,'') | strcmp(icesheetname,'all')), 91 md.icesheetoutline=icesheetname; 92 else 93 md.icesheetoutline=char(textread(icesheetname,'%s','delimiter','\n')); 94 end -
issm/trunk/src/m/classes/public/loadresultsfromcluster.m
r2188 r2617 27 27 28 28 %read log files onto fields 29 md.errlog= readfile([md.name '.errlog']);30 md.outlog= readfile([md.name '.outlog']);29 md.errlog=char(textread([md.name '.errlog'],'%s','delimiter','\n')); 30 md.outlog=char(textread([md.name '.outlog'],'%s','delimiter','\n')); 31 31 32 32 if ~isempty(md.errlog), -
issm/trunk/src/m/classes/public/mesh/mesh.m
r2402 r2617 83 83 84 84 %outline names 85 md.domainoutline= readfile(domainname);85 md.domainoutline=char(textread(domainname,'%s','delimiter','\n')); 86 86 if strcmp(riftname,''), 87 87 md.riftoutline=''; 88 88 else 89 md.riftoutline= readfile(riftname);89 md.riftoutline=char(textread(riftname,'%s','delimiter','\n')); 90 90 end 91 91 -
issm/trunk/src/m/classes/public/parameterize.m
r2564 r2617 63 63 64 64 %Keep track of parameter file 65 md.parameterfile= readfile(parametername);65 md.parameterfile=char(textread(parametername,'%s','delimiter','\n')); 66 66 67 67 %Name and notes -
issm/trunk/src/m/classes/public/postsolveparallel.m
r2023 r2617 26 26 27 27 %reread onto md.errlog 28 md.errlog= readfile([md.name '.errlog']);28 md.errlog=char(textread([md.name '.errlog'],'%s','delimiter','\n')); 29 29 md.memoryleaks=memoryleaks; 30 30
Note:
See TracChangeset
for help on using the changeset viewer.