Changeset 14632


Ignore:
Timestamp:
04/17/13 11:23:14 (12 years ago)
Author:
Eric.Larour
Message:

CHG: moving things around to adapt new naming of petsc options to toolkits options

Location:
issm/trunk-jpl/src/c
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Makefile.am

    r14628 r14632  
    198198                                        ./shared/Numerics/UnitConversion.cpp\
    199199                                        ./shared/Numerics/OptionsFromAnalysis.cpp\
     200                                        ./shared/Numerics/ToolkitsOptionsFromAnalysis.cpp\
    200201                                        ./shared/Exceptions/exceptions.h\
    201202                                        ./shared/Exceptions/Exceptions.cpp\
     
    728729                                        ./toolkits/petsc/objects/PetscVec.cpp\
    729730                                        ./toolkits/petsc/petscincludes.h\
    730                                         ./shared/Numerics/PetscOptionsFromAnalysis.cpp\
    731731                                        ./modules/Solverx/SolverxPetsc.cpp\
    732732                                        ./modules/Solverx/DofTypesToIndexSet.cpp
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r14628 r14632  
    270270        this->loads->SetCurrentConfiguration(elements, loads, nodes,vertices, materials,parameters);
    271271
    272         #ifdef _HAVE_PETSC_
    273         /*take care of petsc options, that depend on this analysis type (present only after model processor)*/
    274         if(this->parameters->Exist(PetscOptionsStringsEnum)){
    275                 PetscOptionsFromAnalysis(this->parameters,analysis_type);
    276                 if(VerboseSolver()) _pprintLine_("      petsc Options set for analysis type: " << EnumToStringx(analysis_type));
    277         }
    278         #endif
     272        /*take care of toolkits options, that depend on this analysis type (present only after model processor)*/
     273        if(this->parameters->Exist(ToolkitsOptionsStringsEnum)){
     274                ToolkitsOptionsFromAnalysis(this->parameters,analysis_type);
     275                if(VerboseSolver()) _pprintLine_("      toolkits Options set for analysis type: " << EnumToStringx(analysis_type));
     276        }
    279277
    280278}
  • issm/trunk-jpl/src/c/modules/modules.h

    r14279 r14632  
    6969#include "./SurfaceAverageVelMisfitx/SurfaceAverageVelMisfitx.h"
    7070#include "./ModelProcessorx/ModelProcessorx.h"
    71 #include "./ParsePetscOptionsx/ParsePetscOptionsx.h"
     71#include "./ParseToolkitsOptionsx/ParseToolkitsOptionsx.h"
    7272#include "./NodalValuex/NodalValuex.h"
    7373#include "./NodeConnectivityx/NodeConnectivityx.h"
  • issm/trunk-jpl/src/c/shared/Numerics/OptionsFromAnalysis.cpp

    r13622 r14632  
    3030
    3131        numanalyses=0;
    32         parameters->FindParam(&strings,&numanalyses,PetscOptionsStringsEnum);
     32        parameters->FindParam(&strings,&numanalyses,ToolkitsOptionsStringsEnum);
    3333
    34         parameters->FindParam(&analyses,&dummy,PetscOptionsAnalysesEnum);
     34        parameters->FindParam(&analyses,&dummy,ToolkitsOptionsAnalysesEnum);
    3535
    3636        if(numanalyses==0)return NULL; //we did not find petsc options, don't bother.
  • issm/trunk-jpl/src/c/shared/Numerics/ToolkitsOptionsFromAnalysis.cpp

    r14625 r14632  
    1 /*!\file:  PetscOptionsFromAnalysis.cpp
    2  * \brief: change petsc options using analysis type and parameters
     1/*!\file:  ToolkitsOptionsFromAnalysis.cpp
     2 * \brief: this is mainly for the case where we run our toolkits using petsc. In this case, we need to
     3 * plug our toolkits options directly into the petsc options database. This is the case for each analysis type
     4 * and parameters
    35 */
    46
     
    1315#include "../../toolkits/toolkits.h"
    1416
    15 void PetscOptionsFromAnalysis(Parameters* parameters,int analysis_type){
     17void ToolkitsOptionsFromAnalysis(Parameters* parameters,int analysis_type){
    1618
    1719        /*intermediary: */
     
    2123        options=OptionsFromAnalysis(parameters,analysis_type);
    2224
    23         /*now, reset the options database with this string. Taken from petsc/install/src/sys/objects/pinit.c. This
     25        /*now, reset the petsc options database with this string. Taken from petsc/install/src/sys/objects/pinit.c. This
    2426         *capability is not covered by Petsc!: */
     27
     28        #ifdef _HAVE_PETSC_
    2529
    2630        #if _PETSC_MAJOR_ == 2
     
    3842        #endif
    3943
     44        #endif
     45
    4046        /*Free ressources:*/
    4147        xDelete<char>(options);
  • issm/trunk-jpl/src/c/shared/Numerics/numerics.h

    r13061 r14632  
    3131void        XZvectorsToCoordinateSystem(IssmDouble *T,IssmDouble*xzvectors);
    3232int         cubic(IssmDouble a, IssmDouble b, IssmDouble c, IssmDouble d, double X[3], int *num);
    33 #ifdef _HAVE_PETSC_
    34 void   PetscOptionsFromAnalysis(Parameters* parameters,int analysis_type);
    35 #endif
     33void        ToolkitsOptionsFromAnalysis(Parameters* parameters,int analysis_type);
    3634
    3735#endif //ifndef _NUMERICS_H_
Note: See TracChangeset for help on using the changeset viewer.