Ignore:
Timestamp:
06/16/09 11:32:48 (16 years ago)
Author:
jschierm
Message:

Still more documentation and copyrights.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/dakota/dakota_in_parse.m

    r32 r1014  
    11%
    2 %  read a Dakota .in file and parse it.
     2%  read a Dakota .in input file and parse it.
    33%
    44%  [method,dvar,dresp]=dakota_in_parse(filei)
     5%
     6%  where the required input is:
     7%    filei         (character, name of .in file)
     8%
     9%  the required output is:
     10%    method        (character, dakota method name)
     11%    dvar          (structure array, variables)
     12%    dresp         (structure array, responses)
     13%
     14%  the filei will be prompted if empty.  the fields of dvar and
     15%  dresp are particular to the data contained within the file.
     16%
     17%  this function reads a dakota .in input file and parses it
     18%  into the matlab workspace.  it operates in a content-driven
     19%  fashion, where it parses whatever input data it encounters
     20%  in the file, rather than searching for data based on the
     21%  particular method.  (this makes it independent of method.)
     22%
     23%  as of now, parameters are generally not parsed.  also, the
     24%  variable and response classes are not used for output.
     25%
     26%  this data would typically be used for modifying and submitting
     27%  a subsequent dakota run.  it could also be used with output
     28%  data for post-processing or annotation purposes.
     29%
     30%  "Copyright 2009, by the California Institute of Technology.
     31%  ALL RIGHTS RESERVED. United States Government Sponsorship
     32%  acknowledged. Any commercial use must be negotiated with
     33%  the Office of Technology Transfer at the California Institute
     34%  of Technology.  (NTR 47078)
     35%
     36%  This software may be subject to U.S. export control laws.
     37%  By accepting this  software, the user agrees to comply with
     38%  all applicable U.S. export laws and regulations. User has the
     39%  responsibility to obtain export licenses, or other export
     40%  authority as may be required before exporting such information
     41%  to foreign countries or providing access to foreign persons."
    542%
    643function [method,dvar,dresp]=dakota_in_parse(filei)
     
    233270function [dresp]=responses_parse(fidi,tokens,itoken)
    234271
    235 display('Reading Dakota response functions.');
     272display('Reading Dakota responses.');
    236273dresp=[];
    237274nof =0;
     
    515552       strncmpi(tokens{1}{itoken},'responses',9)
    516553
    517 %  assemble the lists by response function
     554%  assemble the lists by response
    518555
    519556        if exist('nrespl','var') && isfield(dresp,'rf')
Note: See TracChangeset for help on using the changeset viewer.