Changeset 13530
- Timestamp:
- 10/04/12 10:33:59 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 added
- 2 deleted
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Makefile.am
r13432 r13530 67 67 ./classes/objects/Vertex.h\ 68 68 ./classes/objects/Vertex.cpp\ 69 ./classes/objects/AdolcEdf.h\ 69 70 ./classes/Hook.h\ 70 71 ./classes/Hook.cpp\ … … 188 189 ./shared/Matrix/matrix.h\ 189 190 ./shared/Matrix/MatrixUtils.cpp\ 190 ./shared/Numerics/adolc_edf.h\191 191 ./shared/Numerics/numerics.h\ 192 192 ./shared/Numerics/Verbosity.h\ … … 350 350 ./solutions/AnalysisConfiguration.cpp\ 351 351 ./solutions/CorePointerFromSolutionEnum.cpp\ 352 ./solutions/EnvironmentInit.cpp\ 352 353 ./solvers/solver_linear.cpp\ 353 354 ./solvers/solver_nonlinear.cpp\ -
issm/trunk-jpl/src/c/classes/bamg/BamgGeom.cpp
r12821 r13530 1 1 #include <stdio.h> 2 #include "../objects .h"2 #include "../objects/objects.h" 3 3 #include "../../io/io.h" 4 4 #include "../../shared/shared.h" -
issm/trunk-jpl/src/c/classes/bamg/BamgMesh.cpp
r12821 r13530 1 1 #include <stdio.h> 2 #include "../objects .h"2 #include "../objects/objects.h" 3 3 #include "../../io/io.h" 4 4 #include "../../shared/shared.h" -
issm/trunk-jpl/src/c/classes/bamg/BamgOpts.cpp
r13036 r13530 2 2 #include "../../shared/shared.h" 3 3 #include "../../include/include.h" 4 #include "../objects .h"4 #include "../objects/objects.h" 5 5 #include "../../io/io.h" 6 6 -
issm/trunk-jpl/src/c/classes/bamg/BamgQuadtree.cpp
r12821 r13530 3 3 #include <stdlib.h> 4 4 5 #include "../objects .h"5 #include "../objects/objects.h" 6 6 7 7 namespace bamg { -
issm/trunk-jpl/src/c/classes/bamg/BamgVertex.cpp
r13036 r13530 4 4 #include <ctime> 5 5 6 #include "../objects .h"6 #include "../objects/objects.h" 7 7 8 8 namespace bamg { -
issm/trunk-jpl/src/c/classes/bamg/Geometry.cpp
r13385 r13530 4 4 #include <ctime> 5 5 6 #include "../objects .h"6 #include "../objects/objects.h" 7 7 #include "../../include/include.h" 8 8 #include "../../shared/Exceptions/exceptions.h" -
issm/trunk-jpl/src/c/classes/bamg/ListofIntersectionTriangles.cpp
r13036 r13530 4 4 #include <ctime> 5 5 6 #include "../objects .h"6 #include "../objects/objects.h" 7 7 8 8 namespace bamg { -
issm/trunk-jpl/src/c/classes/bamg/Mesh.cpp
r13036 r13530 4 4 #include <ctime> 5 5 6 #include "../objects .h"6 #include "../objects/objects.h" 7 7 8 8 namespace bamg { -
issm/trunk-jpl/src/c/classes/bamg/SetOfE4.cpp
r13036 r13530 1 #include "../objects .h"1 #include "../objects/objects.h" 2 2 3 3 using namespace std; -
issm/trunk-jpl/src/c/classes/bamg/Triangle.cpp
r13036 r13530 4 4 #include <ctime> 5 5 6 #include "../objects .h"6 #include "../objects/objects.h" 7 7 8 8 namespace bamg { -
issm/trunk-jpl/src/c/classes/classes.h
r12840 r13530 30 30 #include "./OptArgs.h" 31 31 #include "./OptPars.h" 32 #include "./AdolcEdf.h" 32 33 33 34 #endif -
issm/trunk-jpl/src/c/classes/kriging/ExponentialVariogram.cpp
r13036 r13530 11 11 #include <stdio.h> 12 12 #include <string.h> 13 #include "../objects .h"13 #include "../objects/objects.h" 14 14 #include "../../EnumDefinitions/EnumDefinitions.h" 15 15 #include "../../shared/shared.h" -
issm/trunk-jpl/src/c/classes/kriging/GaussianVariogram.cpp
r13036 r13530 11 11 #include <stdio.h> 12 12 #include <string.h> 13 #include "../objects .h"13 #include "../objects/objects.h" 14 14 #include "../../EnumDefinitions/EnumDefinitions.h" 15 15 #include "../../shared/shared.h" -
issm/trunk-jpl/src/c/classes/kriging/Observation.cpp
r12821 r13530 4 4 5 5 #include <stdlib.h> 6 #include "../objects .h"6 #include "../objects/objects.h" 7 7 8 8 /*Observation constructors and destructor*/ -
issm/trunk-jpl/src/c/classes/kriging/PowerVariogram.cpp
r13036 r13530 11 11 #include <stdio.h> 12 12 #include <string.h> 13 #include "../objects .h"13 #include "../objects/objects.h" 14 14 #include "../../EnumDefinitions/EnumDefinitions.h" 15 15 #include "../../shared/shared.h" -
issm/trunk-jpl/src/c/classes/kriging/Quadtree.cpp
r13036 r13530 1 #include "../objects .h"1 #include "../objects/objects.h" 2 2 3 3 /*DOCUMENTATION What is a Quadtree? {{{ -
issm/trunk-jpl/src/c/classes/kriging/SphericalVariogram.cpp
r13036 r13530 11 11 #include <stdio.h> 12 12 #include <string.h> 13 #include "../objects .h"13 #include "../objects/objects.h" 14 14 #include "../../EnumDefinitions/EnumDefinitions.h" 15 15 #include "../../shared/shared.h" -
issm/trunk-jpl/src/c/include/macros.h
r13056 r13530 71 71 #endif 72 72 /*}}}*/ 73 /* I SSMBOOT/ISSMEND{{{*/73 /* IssmBoot/IssmEnd {{{*/ 74 74 75 75 /*The following macros hide the error exception handling in a matlab module. Just put 76 * I SSMBOOT(); and ISSMEND(); at the beginning and end of a module, and c++ exceptions76 * IssmBoot(); and IssmEnd(); at the beginning and end of a module, and c++ exceptions 77 77 * will be trapped. Really nifty!*/ 78 78 79 #define I SSMBOOT(); \79 #define IssmBoot(); \ 80 80 try{ 81 81 82 #define I SSMEND(); }\82 #define IssmEnd(); }\ 83 83 catch(ErrorException &exception){\ 84 84 exception.Report(); \ -
issm/trunk-jpl/src/c/modules/AutodiffDriversx/AutodiffDriversx.cpp
r13513 r13530 8 8 #include "../../toolkits/toolkits.h" 9 9 #include "../../EnumDefinitions/EnumDefinitions.h" 10 #include "../../shared/Numerics/adolc_edf.h"11 10 12 11 -
issm/trunk-jpl/src/c/modules/Solverx/SolverxSeq.cpp
r13515 r13530 12 12 #include "./Solverx.h" 13 13 #include "../../shared/shared.h" 14 #include "../../classes/classes.h" 14 15 #include "../../include/include.h" 15 16 #include "../../io/io.h" … … 17 18 #ifdef _HAVE_GSL_ 18 19 #include <gsl/gsl_linalg.h> 19 #endif20 21 #ifdef _HAVE_ADOLC_22 #include "../../shared/Numerics/adolc_edf.h"23 20 #endif 24 21 -
issm/trunk-jpl/src/c/solutions/issm.cpp
r13502 r13530 5 5 #include "../issm.h" 6 6 #include "../include/globals.h" 7 #include "../shared/Numerics/adolc_edf.h" 8 7 9 8 int main(int argc,char **argv){ 10 9 … … 46 45 IssmPDouble Solution_time, Memory_use, Current_flops; 47 46 48 ISSMBOOT(); 49 50 51 /*Initialize environments: Petsc, MPI, etc...: */ 52 #ifdef _HAVE_PETSC_ 53 ierr=PetscInitialize(&argc,&argv,(char*)0,""); 54 if(ierr) _error_("Could not initialize Petsc"); 55 #else 56 #ifdef _HAVE_MPI_ 57 MPI_Init(&argc,&argv); 58 #endif 59 #endif 60 61 #ifdef _HAVE_MPI_ 47 IssmBoot(); 48 49 EnvironmentInit(argc,argv); 50 51 #ifdef _HAVE_MPI_ 62 52 MPI_Barrier(MPI_COMM_WORLD); start=MPI_Wtime(); 63 53 #else … … 65 55 #endif 66 56 67 /*Size and rank: */ 68 #ifdef _HAVE_MPI_ 69 MPI_Comm_rank(MPI_COMM_WORLD,&my_rank); 70 MPI_Comm_size(MPI_COMM_WORLD,&num_procs); 71 #endif 72 57 73 58 /*First process inputs*/ 74 59 _pprintLine_(""); … … 115 100 #endif 116 101 117 /*If running AD, then initialize the tape: */102 /*If running AD, then initialize a placeholder with which to work: */ 118 103 #ifdef _HAVE_ADOLC_ 119 104 GenericParam<Adolc_edf> *theAdolcEDF_p=new GenericParam<Adolc_edf>(AdolcParamEnum); … … 249 234 #endif 250 235 251 252 236 /*end module: */ 253 I SSMEND();237 IssmEnd(); 254 238 255 239 return 0; //unix success return; -
issm/trunk-jpl/src/c/solutions/kriging.cpp
r13376 r13530 36 36 IssmDouble *error = NULL; 37 37 38 I SSMBOOT();38 IssmBoot(); 39 39 40 /*Initialize environments: Petsc, MPI, etc...: */ 41 #ifdef _HAVE_PETSC_ 42 int ierr=PetscInitialize(&argc,&argv,(char*)0,""); 43 if(ierr) _error_("Could not initialize Petsc"); 44 #else 45 #ifdef _HAVE_MPI_ 46 MPI_Init(&argc,&argv); 47 #endif 48 #endif 49 50 /*Size and rank: */ 51 #ifdef _HAVE_MPI_ 52 MPI_Comm_rank(MPI_COMM_WORLD,&my_rank); 53 MPI_Comm_size(MPI_COMM_WORLD,&num_procs); 54 #endif 40 EnvironmentInit(argc,argv); 55 41 56 42 /*First process inputs*/ … … 112 98 113 99 /*end module: */ 114 I SSMEND();100 IssmEnd(); 115 101 116 102 return 0; //unix success return; -
issm/trunk-jpl/src/c/solutions/solutions.h
r13277 r13530 45 45 void controlrestart(FemModel* femmodel,IssmDouble* J); 46 46 void ResetBoundaryConditions(FemModel* femmodel, int analysis_type); 47 void EnvironmentInit(int argc,char** argv); 47 48 48 49 //solution configuration
Note:
See TracChangeset
for help on using the changeset viewer.