Changeset 2120


Ignore:
Timestamp:
09/08/09 11:50:59 (15 years ago)
Author:
jschierm
Message:

Addition of rest of interface parameters.

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  
    5656    params.tabular_graphics_data=false;
    5757end
    58 % could use unique file name rather than dakota default
     58% could use unique file name rather than 'dakota_tabular.dat'
    5959if ~isfield(params,'tabular_graphics_file')
    6060    params.tabular_graphics_file=false;
     
    7070end
    7171
    72 if ~isfield(params,'output')
    73     params.output='normal';
    74 end
    75 
    76 
    7772%%  model section
    7873
     
    8883    params.direct=false;
    8984end
     85
     86%  interface parallelism controls
     87
    9088if ~isfield(params,'asynchronous')
    9189    params.asynchronous=true;
     
    9492    params.evaluation_concurrency=false;
    9593end
     94if ~isfield(params,'analysis_concurrency')
     95    params.analysis_concurrency=false;
     96end
     97if ~isfield(params,'evaluation_servers')
     98    params.evaluation_servers=false;
     99end
     100if ~isfield(params,'evaluation_self_scheduling')
     101    params.evaluation_self_scheduling=false;
     102end
     103if ~isfield(params,'evaluation_static_scheduling')
     104    params.evaluation_static_scheduling=false;
     105end
     106if ~isfield(params,'analysis_servers')
     107    params.analysis_servers=false;
     108end
     109if ~isfield(params,'analysis_self_scheduling')
     110    params.analysis_self_scheduling=false;
     111end
     112if ~isfield(params,'analysis_static_scheduling')
     113    params.analysis_static_scheduling=false;
     114end
     115
     116%  algebraic mappings
     117
     118if ~isfield(params,'algebraic_mappings')
     119    params.algebraic_mappings=false;
     120end
     121
     122%  simulation interface controls
     123
    96124if ~isfield(params,'analysis_driver')
    97125    params.analysis_driver='';
     
    110138end
    111139if ~isfield(params,'deactivate')
    112     params.deactivate='evaluation_cache restart_file';
    113 end
    114 
     140    params.deactivate='evaluation_cache,restart_file';
     141end
     142
     143%  system call or fork interface
    115144
    116145if ~isfield(params,'parameters_file')
     
    120149    params.results_file='results.out';
    121150end
     151if ~isfield(params,'verbatim')
     152    params.verbatim=false;
     153end
     154if ~isfield(params,'aprepro')
     155    params.aprepro=false;
     156end
    122157if ~isfield(params,'file_tag')
    123158    params.file_tag=true;
     
    125160if ~isfield(params,'file_save')
    126161    params.file_save=true;
     162end
     163
     164%  direct function interface
     165
     166if ~isfield(params,'processors_per_analysis')
     167    params.processors_per_analysis=false;
    127168end
    128169
  • issm/trunk/src/m/solutions/dakota/dakota_in_write.m

    r2116 r2120  
    8484
    8585method_write(fidi,dmeth,dresp,params);
    86 param_write(fidi,'\t  ','output','   ','\n',params);
    8786
    8887%  write the model section
     
    378377    param_write(fidi,'\t','asynchronous','','\n',params);
    379378    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);
    380387    param_write(fidi,'\t','system','','\n',params);
    381388    param_write(fidi,'\t','fork','','\n',params);
     
    388395    end
    389396    param_write(fidi,'\t  ','failure_capture','   ','\n',params);
     397    param_write(fidi,'\t  ','deactivate','        ','\n',params);
    390398    param_write(fidi,'\t  ','parameters_file',' = ''','''\n',params);
    391399    param_write(fidi,'\t  ','results_file','    = ''','''\n',params);
     400    param_write(fidi,'\t  ','verbatim', '','\n',params);
     401    param_write(fidi,'\t  ','aprepro', '','\n',params);
    392402    param_write(fidi,'\t  ','file_tag', '','\n',params);
    393403    param_write(fidi,'\t  ','file_save','','\n',params);
    394404elseif params.direct
    395405%  Error: asynchronous capability not yet supported in direct interfaces.
     406    param_write(fidi,'\t','algebraic_mappings',' = ','\n',params);
    396407    param_write(fidi,'\t','direct','','\n',params);
    397408    param_write(fidi,'\t  ','analysis_driver','     = ''','''\n',params);
     
    409420    end
    410421    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);
    412424end
    413425
Note: See TracChangeset for help on using the changeset viewer.