Changeset 2120
- Timestamp:
- 09/08/09 11:50:59 (15 years ago)
- Location:
- issm/trunk/src/m/solutions/dakota
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/dakota/dakota_in_params.m
r2116 r2120 56 56 params.tabular_graphics_data=false; 57 57 end 58 % could use unique file name rather than dakota default58 % could use unique file name rather than 'dakota_tabular.dat' 59 59 if ~isfield(params,'tabular_graphics_file') 60 60 params.tabular_graphics_file=false; … … 70 70 end 71 71 72 if ~isfield(params,'output')73 params.output='normal';74 end75 76 77 72 %% model section 78 73 … … 88 83 params.direct=false; 89 84 end 85 86 % interface parallelism controls 87 90 88 if ~isfield(params,'asynchronous') 91 89 params.asynchronous=true; … … 94 92 params.evaluation_concurrency=false; 95 93 end 94 if ~isfield(params,'analysis_concurrency') 95 params.analysis_concurrency=false; 96 end 97 if ~isfield(params,'evaluation_servers') 98 params.evaluation_servers=false; 99 end 100 if ~isfield(params,'evaluation_self_scheduling') 101 params.evaluation_self_scheduling=false; 102 end 103 if ~isfield(params,'evaluation_static_scheduling') 104 params.evaluation_static_scheduling=false; 105 end 106 if ~isfield(params,'analysis_servers') 107 params.analysis_servers=false; 108 end 109 if ~isfield(params,'analysis_self_scheduling') 110 params.analysis_self_scheduling=false; 111 end 112 if ~isfield(params,'analysis_static_scheduling') 113 params.analysis_static_scheduling=false; 114 end 115 116 % algebraic mappings 117 118 if ~isfield(params,'algebraic_mappings') 119 params.algebraic_mappings=false; 120 end 121 122 % simulation interface controls 123 96 124 if ~isfield(params,'analysis_driver') 97 125 params.analysis_driver=''; … … 110 138 end 111 139 if ~isfield(params,'deactivate') 112 params.deactivate='evaluation_cache restart_file'; 113 end 114 140 params.deactivate='evaluation_cache,restart_file'; 141 end 142 143 % system call or fork interface 115 144 116 145 if ~isfield(params,'parameters_file') … … 120 149 params.results_file='results.out'; 121 150 end 151 if ~isfield(params,'verbatim') 152 params.verbatim=false; 153 end 154 if ~isfield(params,'aprepro') 155 params.aprepro=false; 156 end 122 157 if ~isfield(params,'file_tag') 123 158 params.file_tag=true; … … 125 160 if ~isfield(params,'file_save') 126 161 params.file_save=true; 162 end 163 164 % direct function interface 165 166 if ~isfield(params,'processors_per_analysis') 167 params.processors_per_analysis=false; 127 168 end 128 169 -
issm/trunk/src/m/solutions/dakota/dakota_in_write.m
r2116 r2120 84 84 85 85 method_write(fidi,dmeth,dresp,params); 86 param_write(fidi,'\t ','output',' ','\n',params);87 86 88 87 % write the model section … … 378 377 param_write(fidi,'\t','asynchronous','','\n',params); 379 378 param_write(fidi,'\t ','evaluation_concurrency',' = ','\n',params); 379 param_write(fidi,'\t ','analysis_concurrency',' = ','\n',params); 380 param_write(fidi,'\t ','evaluation_servers',' = ','\n',params); 381 param_write(fidi,'\t ','evaluation_self_scheduling','','\n',params); 382 param_write(fidi,'\t ','evaluation_static_scheduling','','\n',params); 383 param_write(fidi,'\t ','analysis_servers',' = ','\n',params); 384 param_write(fidi,'\t ','analysis_self_scheduling','','\n',params); 385 param_write(fidi,'\t ','analysis_static_scheduling','','\n',params); 386 param_write(fidi,'\t','algebraic_mappings',' = ','\n',params); 380 387 param_write(fidi,'\t','system','','\n',params); 381 388 param_write(fidi,'\t','fork','','\n',params); … … 388 395 end 389 396 param_write(fidi,'\t ','failure_capture',' ','\n',params); 397 param_write(fidi,'\t ','deactivate',' ','\n',params); 390 398 param_write(fidi,'\t ','parameters_file',' = ''','''\n',params); 391 399 param_write(fidi,'\t ','results_file',' = ''','''\n',params); 400 param_write(fidi,'\t ','verbatim', '','\n',params); 401 param_write(fidi,'\t ','aprepro', '','\n',params); 392 402 param_write(fidi,'\t ','file_tag', '','\n',params); 393 403 param_write(fidi,'\t ','file_save','','\n',params); 394 404 elseif params.direct 395 405 % Error: asynchronous capability not yet supported in direct interfaces. 406 param_write(fidi,'\t','algebraic_mappings',' = ','\n',params); 396 407 param_write(fidi,'\t','direct','','\n',params); 397 408 param_write(fidi,'\t ','analysis_driver',' = ''','''\n',params); … … 409 420 end 410 421 param_write(fidi,'\t ','failure_capture',' ','\n',params); 411 param_write(fidi,'\t ','deactivate',' ','\n',params); 422 param_write(fidi,'\t ','deactivate',' ','\n',params); 423 param_write(fidi,'\t ','processors_per_analysis',' = ''','''\n',params); 412 424 end 413 425
Note:
See TracChangeset
for help on using the changeset viewer.