Changeset 6020
- Timestamp:
- 09/24/10 10:37:02 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/Solverx/Solverx.cpp
r6014 r6020 30 30 int solver_type; 31 31 bool fromlocalsize = true; 32 int verbose; 32 33 33 34 34 35 /*Display message*/ 35 int verbose; parameters->FindParam(&verbose,VerboseEnum);36 if (verbose) _printf_(" Solving\n");36 parameters->FindParam(&verbose,VerboseEnum); if (verbose) _printf_(" Solving\n"); 37 if(verbose)PetscOptionsPrint(stdout); 37 38 38 39 /*First, check that f-set is not NULL, ie model is fully constrained: */ … … 40 41 *puf=NULL; return; 41 42 } 43 42 44 43 45 /*If initial guess for solution exists, use it to create uf, otherwise, … … 80 82 #endif 81 83 #endif 84 82 85 83 86 /*Prepare solver*/ … … 104 107 } 105 108 } 109 110 if(verbose)KSPView(ksp,PETSC_VIEWER_STDOUT_WORLD); 106 111 107 112 /*Solve: */ -
issm/trunk/src/c/objects/FemModel.cpp
r6014 r6020 164 164 PetscOptionsFromAnalysis(this->parameters,analysis_type); 165 165 166 verbose=1;167 166 if(verbose){ 168 _printf_("Petsc Options set for analysis type: %s\n",EnumToString(analysis_type)); 169 PetscOptionsPrint(stdout); 167 _printf_(" Petsc Options set for analysis type: %s\n",EnumToString(analysis_type)); 170 168 } 171 169 -
issm/trunk/src/c/shared/Numerics/PetscOptionsFromAnalysis.cpp
r6014 r6020 25 25 numanalyses=0; 26 26 parameters->FindParam(&strings,&numanalyses,PetscOptionsStringsEnum); 27 28 #ifdef _SERIAL_ //do not take this away, because ISSM loads analyses as a Double Param instead of a DoubleVec Param when running with only 1 analysis 29 if(numanalyses==1){ analyses=(double*)xmalloc(1*sizeof(double)); parameters->FindParam(analyses,PetscOptionsAnalysesEnum); 30 } 31 else parameters->FindParam(&analyses,&dummy,PetscOptionsAnalysesEnum); 32 #else 27 33 parameters->FindParam(&analyses,&dummy,PetscOptionsAnalysesEnum); 34 #endif 28 35 29 36 if(numanalyses==0)return; //we did not find petsc options, don't bother.
Note:
See TracChangeset
for help on using the changeset viewer.