Changeset 356
- Timestamp:
- 05/12/09 12:19:04 (16 years ago)
- Location:
- issm/trunk/src/m/solutions/dakota
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/dakota/dakota_m_write.m
r32 r356 89 89 end 90 90 fprintf(fidm,'\tloadmodel(infile);\n\n'); 91 % fprintf(fidm,'\tmd=qmuname(md);\n\n'); 91 92 if strcmpi(params.analysis_driver,'matlab') 93 fprintf(fidm,'\tmd=qmuname(md,Dakota.fnEvalId);\n\n'); 94 else 95 fprintf(fidm,'\tmd=qmuname(md);\n\n'); 96 end 92 97 93 98 end -
issm/trunk/src/m/solutions/dakota/qmu.m
r349 r356 87 87 88 88 %save input and output files into model 89 md.dakotain =readfile([qmufile '.in']);90 md.dakotaout=readfile([qmufile '.out']);91 if exist('dakota_tabular.dat','file')92 md.dakotadat=readfile('dakota_tabular.dat');93 end89 %md.dakotain =readfile([qmufile '.in']); 90 %md.dakotaout=readfile([qmufile '.out']); 91 %if exist('dakota_tabular.dat','file') 92 % md.dakotadat=readfile('dakota_tabular.dat'); 93 %end 94 94 95 95 system('zip -mq params.in.zip params.in.[1-9]*'); -
issm/trunk/src/m/solutions/dakota/qmuname.m
r1 r356 1 function md=qmuname(md )1 function md=qmuname(md,varargin) 2 2 %INPUT function md=qmuname(md) 3 %Pick up the number f ile, read it and get the run number.Then modify the name of this3 %Pick up the number from a file, or get it directly from the Dakota structure. Then modify the name of this 4 4 %model to reflect this new number. 5 5 6 fid=fopen('number','r'); 7 number=fscanf(fid,'%i',1) 8 fclose(fid); 6 if nargin==1, 7 fid=fopen('number','r'); 8 number=fscanf(fid,'%i',1) 9 fclose(fid); 10 else 11 number=varargin{1}; 12 end 9 13 10 14 %modify model name by appending number to the name
Note:
See TracChangeset
for help on using the changeset viewer.