Ignore:
Timestamp:
09/24/10 10:04:01 (14 years ago)
Author:
Eric.Larour
Message:

Commit de la mort qui tue: new way of running petsc,
where options are specified using a @petscoptions class,
which acts in a different way for each analysis_type, with
of course some defaults. This allows to change the petsc
solver on a per analysis basis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/FemModel.cpp

    r5772 r6014  
    127127void FemModel::SetCurrentConfiguration(int configuration_type,int analysis_type){
    128128
     129        int verbose=0;
     130
     131        /*retrieve parameters: */
     132        this->parameters->FindParam(&verbose,VerboseEnum);
     133       
    129134        /*Use configuration_type to setup the analysis counter, the configurations of objects etc ... but use
    130135         * analysis_type to drive the element numerics. This allows for use of 1 configuration_type for several
     
    156161        this->loads->SetCurrentConfiguration(elements, loads, nodes,vertices, materials,parameters);
    157162
     163        /*take care of petsc options, that depend on this analysis type: */
     164        PetscOptionsFromAnalysis(this->parameters,analysis_type);
     165
     166        verbose=1;
     167        if(verbose){
     168                _printf_("Petsc Options set for analysis type: %s\n",EnumToString(analysis_type));
     169                PetscOptionsPrint(stdout);
     170        }
     171
     172
    158173}
    159174/*}}}1*/
Note: See TracChangeset for help on using the changeset viewer.