Ignore:
Timestamp:
03/13/12 19:59:59 (13 years ago)
Author:
Eric.Larour
Message:

Completed separation of Petsc from ISSM. Matrix and Vector
are now the vehicles for Mat and Vec objects when running with
Petsc, or double* when running with a custom made type of matrix (still
to be finished).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/modules/Solverx/Solverx.cpp

    r11687 r11695  
    2020        uf=new Vector();
    2121
     22        /*Intermediary: */
     23        int analysis_type;
     24
    2225        #ifdef _HAVE_PETSC_
    2326        Vec uf0_vector = NULL;
     
    2629        if(df)  df_vector = df->vector;
    2730
    28         SolverxPetsc(&uf->vector,Kff->matrix,pf->vector,uf0_vector,df_vector,parameters);
     31        /*In serial mode, the Petsc Options database has not been initialized properly: */
     32        #ifdef _SERIAL_
     33        parameters->FindParam(&analysis_type,AnalysisTypeEnum);
     34        PetscOptionsFromAnalysis(parameters,analysis_type);
     35        #endif
     36
     37        SolverxPetsc(&uf->vector, Kff->matrix, pf->vector, uf0_vector, df->vector, parameters);
    2938        VecGetSize(uf->vector,&uf->M);
    3039        #else
Note: See TracChangeset for help on using the changeset viewer.