source:
issm/oecreview/Archive/11991-12009/ISSM-11996-11997.diff@
28275
Last change on this file since 28275 was 12325, checked in by , 13 years ago | |
---|---|
File size: 12.4 KB |
-
proj/ice/larour/issm-uci-clean/trunk-jpl/src/mex/Makefile.am
2 2 EXEEXT=$(WRAPPEREXT) 3 3 #Bin programs {{{1 4 4 5 if NOSERIAL 6 bin_PROGRAMS = 7 else 5 if MODULES 8 6 if MATLAB 9 bin_PROGRAMS = AverageFilter\ 10 AddExternalResult\ 7 bin_PROGRAMS = AverageFilter\ 11 8 BamgMesher\ 12 9 BamgConvertMesh\ 13 10 BamgTriangulate\ 14 11 Chaco\ 15 ComputeBasalStress\16 ConfigureObjects \17 ControlOptimization\18 ControlInputGetGradient\19 ControlInputScaleGradient\20 ControlInputSetGradient\21 12 ContourToMesh \ 22 13 ContourToNodes \ 23 CostFunction \24 CreateNodalConstraints\25 CreateJacobianMatrix\26 Echo\27 14 ElementConnectivity\ 28 15 EnumToString\ 29 16 StringToEnum\ 30 InputControlUpdate \31 InputConvergence\32 GetSolutionFromInputs\33 GetVectorFromInputs\34 Gradj\35 GroundinglineMigration\36 17 HoleFiller \ 37 InputDuplicate\38 InputScale\39 InputToResult\40 18 InternalFront\ 41 19 InterpFromGridToMesh \ 42 20 InterpFromMeshToMesh2d \ … … 50 28 Ll2xy \ 51 29 Exp2Kml \ 52 30 Kml2Exp \ 53 Mergesolutionfromftog\54 31 MeshPartition\ 55 32 MeshProfileIntersection\ 56 ModelProcessor \57 NodeConnectivity\58 NodesDof\59 Orth\60 OutputResults\61 ParsePetscOptions\62 ConstraintsState\63 33 PointCloudFindNeighbors\ 64 34 PropagateFlagsFromConnectivity\ 65 ProcessParams\66 Reduceload\67 Reducevectorgtos\68 Reducevectorgtof\69 Response\70 ResetCoordinateSystem\71 35 Scotch\ 72 Solver\73 SparseToVector\74 SpcNodes\75 36 Shp2Kml\ 76 UpdateConstraints\77 SurfaceArea\78 SystemMatrices\79 TimeAdapt\80 37 TriaSearch\ 81 38 TriMesh\ 82 39 TriMeshRifts\ 83 40 TriMeshNoDensity\ 84 41 TriMeshProcessRifts\ 85 TriMeshRefine\ 86 InputUpdateFromConstant\ 87 InputUpdateFromSolution\ 88 InputUpdateFromVector\ 89 UpdateVertexPositions\ 90 UpdateDynamicConstraints\ 91 VerticesDof 42 TriMeshRefine 92 43 endif 93 44 if PYTHON 94 45 bin_PROGRAMS = TriMesh 95 46 endif 96 47 endif 97 48 #}}} 98 #Dakota programs {{{199 if NOSERIAL100 bin_PROGRAMS +=101 else102 if DAKOTA103 if MATLAB104 bin_PROGRAMS += DakotaResponses\105 Dakota\106 InputUpdateFromDakota107 endif108 endif109 endif110 #}}}111 49 #Flags and libraries {{{1 112 LDADD = ../c/libISSM .a $(TRIANGLELIB) $(PETSCLIB) $(FLIBS) $(PLAPACKLIB) $(MUMPSLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(SHAPELIBLIB) $(GSLLIB)50 LDADD = ../c/libISSMCore.a ../c/libISSMModules.a $(TRIANGLELIB) $(PETSCLIB) $(FLIBS) $(PLAPACKLIB) $(MUMPSLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(SHAPELIBLIB) $(GSLLIB) 113 51 114 # Initialize115 AM_CXXFLAGS = -D_SERIAL_52 #Triangle library 53 AM_CXXFLAGS = -DTRILIBRARY -DANSI_DECLARATORS -DNO_TIMER 116 54 117 55 if MATLAB 118 AM_LDFLAGS 56 AM_LDFLAGS = $(MEXLINK) 119 57 AM_CXXFLAGS += -DMATLAB -D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread 120 LDADD += $(MEXLIB) 58 LDADD += $(MEXLIB) ../c/libISSMMatlab.a 121 59 122 60 endif 123 61 124 62 if PYTHON 125 63 AM_LDFLAGS = $(PYTHONLINK) 126 AM_CXXFLAGS += -DNPY_NO_DEPRECATED_API127 LDADD += $(BOOSTLIB) $(PYTHONLIB)64 AM_CXXFLAGS += -DNPY_NO_DEPRECATED_API 65 LDADD += $(BOOSTLIB) $(PYTHONLIB) ../c/libISSMPython.a 128 66 endif 129 67 130 68 131 #Triangle library132 AM_CXXFLAGS += -DTRILIBRARY -DANSI_DECLARATORS -DNO_TIMER133 134 69 #Optimization flags: 135 70 AM_CXXFLAGS += $(CXXOPTFLAGS) 136 71 #}}} 137 72 #Bin sources {{{1 138 A ddExternalResult_SOURCES = AddExternalResult/AddExternalResult.cpp\139 AddExternalResult/AddExternalResult.h73 AverageFilter_SOURCES = AverageFilter/AverageFilter.cpp\ 74 AverageFilter/AverageFilter.h 140 75 141 76 BamgMesher_SOURCES = BamgMesher/BamgMesher.cpp\ 142 77 BamgMesher/BamgMesher.h … … 150 85 Chaco_SOURCES = Chaco/Chaco.cpp\ 151 86 Chaco/Chaco.h 152 87 153 ComputeBasalStress_SOURCES = ComputeBasalStress/ComputeBasalStress.cpp\154 ComputeBasalStress/ComputeBasalStress.h155 156 ConfigureObjects_SOURCES = ConfigureObjects/ConfigureObjects.cpp\157 ConfigureObjects/ConfigureObjects.h158 159 88 ContourToMesh_SOURCES = ContourToMesh/ContourToMesh.cpp\ 160 89 ContourToMesh/ContourToMesh.h 161 90 162 91 ContourToNodes_SOURCES = ContourToNodes/ContourToNodes.cpp\ 163 92 ContourToNodes/ContourToNodes.h 164 93 165 ControlOptimization_SOURCES = ControlOptimization/ControlOptimization.cpp\166 ControlOptimization/ControlOptimization.h167 168 ControlInputGetGradient_SOURCES = ControlInputGetGradient/ControlInputGetGradient.cpp\169 ControlInputGetGradient/ControlInputGetGradient.h170 171 ControlInputScaleGradient_SOURCES = ControlInputScaleGradient/ControlInputScaleGradient.cpp\172 ControlInputScaleGradient/ControlInputScaleGradient.h173 174 ControlInputSetGradient_SOURCES = ControlInputSetGradient/ControlInputSetGradient.cpp\175 ControlInputSetGradient/ControlInputSetGradient.h176 177 InputControlUpdate_SOURCES = InputControlUpdate/InputControlUpdate.cpp\178 InputControlUpdate/InputControlUpdate.h179 180 InputConvergence_SOURCES = InputConvergence/InputConvergence.cpp\181 InputConvergence/InputConvergence.h182 183 CostFunction_SOURCES = CostFunction/CostFunction.cpp \184 CostFunction/CostFunction.h185 186 CreateNodalConstraints_SOURCES = CreateNodalConstraints/CreateNodalConstraints.cpp \187 CreateNodalConstraints/CreateNodalConstraints.h188 189 NodesDof_SOURCES = NodesDof/NodesDof.cpp\190 NodesDof/NodesDof.h191 192 Echo_SOURCES = Echo/Echo.cpp\193 Echo/Echo.h194 195 94 ElementConnectivity_SOURCES = ElementConnectivity/ElementConnectivity.cpp\ 196 95 ElementConnectivity/ElementConnectivity.h 197 96 … … 201 100 StringToEnum_SOURCES = StringToEnum/StringToEnum.cpp\ 202 101 StringToEnum/StringToEnum.h 203 102 204 GetSolutionFromInputs_SOURCES = GetSolutionFromInputs/GetSolutionFromInputs.cpp\205 GetSolutionFromInputs/GetSolutionFromInputs.h206 207 GetVectorFromInputs_SOURCES = GetVectorFromInputs/GetVectorFromInputs.cpp\208 GetVectorFromInputs/GetVectorFromInputs.h209 210 Gradj_SOURCES = Gradj/Gradj.cpp\211 Gradj/Gradj.h212 213 GroundinglineMigration_SOURCES = GroundinglineMigration/GroundinglineMigration.cpp\214 GroundinglineMigration/GroundinglineMigration.h215 216 103 HoleFiller_SOURCES = HoleFiller/HoleFiller.cpp\ 217 104 HoleFiller/HoleFiller.h 218 105 219 InputDuplicate_SOURCES = InputDuplicate/InputDuplicate.cpp\220 InputDuplicate/InputDuplicate.h221 222 InputScale_SOURCES = InputScale/InputScale.cpp\223 InputScale/InputScale.h224 225 InputToResult_SOURCES = InputToResult/InputToResult.cpp\226 InputToResult/InputToResult.h227 228 106 InternalFront_SOURCES = InternalFront/InternalFront.cpp\ 229 107 InternalFront/InternalFront.h 230 108 … … 264 142 Kml2Exp_SOURCES = Kml2Exp/Kml2Exp.cpp\ 265 143 Kml2Exp/Kml2Exp.h 266 144 267 AverageFilter_SOURCES = AverageFilter/AverageFilter.cpp\268 AverageFilter/AverageFilter.h269 270 Mergesolutionfromftog_SOURCES = Mergesolutionfromftog/Mergesolutionfromftog.cpp\271 Mergesolutionfromftog/Mergesolutionfromftog.h272 273 145 MeshPartition_SOURCES = MeshPartition/MeshPartition.cpp\ 274 146 MeshPartition/MeshPartition.h 275 147 276 148 MeshProfileIntersection_SOURCES = MeshProfileIntersection/MeshProfileIntersection.cpp\ 277 149 MeshProfileIntersection/MeshProfileIntersection.h 278 150 279 ModelProcessor_SOURCES = ModelProcessor/ModelProcessor.cpp \280 ModelProcessor/ModelProcessor.h281 282 NodeConnectivity_SOURCES = NodeConnectivity/NodeConnectivity.cpp\283 NodeConnectivity/NodeConnectivity.h284 285 Orth_SOURCES = Orth/Orth.cpp\286 Orth/Orth.h287 288 OutputResults_SOURCES = OutputResults/OutputResults.cpp\289 OutputResults/OutputResults.h290 291 ConstraintsState_SOURCES = ConstraintsState/ConstraintsState.cpp\292 ConstraintsState/ConstraintsState.h293 294 151 PointCloudFindNeighbors_SOURCES = PointCloudFindNeighbors/PointCloudFindNeighbors.cpp\ 295 152 PointCloudFindNeighbors/PointCloudFindNeighbors.h 296 153 297 ProcessParams_SOURCES = ProcessParams/ProcessParams.cpp\298 ProcessParams/ProcessParams.h299 300 154 PropagateFlagsFromConnectivity_SOURCES = PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.cpp\ 301 155 PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.h 302 156 303 Reduceload_SOURCES = Reduceload/Reduceload.cpp\304 Reduceload/Reduceload.h305 306 Reducevectorgtos_SOURCES = Reducevectorgtos/Reducevectorgtos.cpp\307 Reducevectorgtos/Reducevectorgtos.h308 309 Reducevectorgtof_SOURCES = Reducevectorgtof/Reducevectorgtof.cpp\310 Reducevectorgtof/Reducevectorgtof.h311 312 Response_SOURCES = Response/Response.cpp\313 Response/Response.h314 315 ResetCoordinateSystem_SOURCES = ResetCoordinateSystem/ResetCoordinateSystem.cpp\316 ResetCoordinateSystem/ResetCoordinateSystem.h317 318 157 Scotch_SOURCES = Scotch/Scotch.cpp\ 319 158 Scotch/Scotch.h 320 159 321 Solver_SOURCES = Solver/Solver.cpp\322 Solver/Solver.h323 324 SparseToVector_SOURCES = SparseToVector/SparseToVector.cpp\325 SparseToVector/SparseToVector.h326 327 SpcNodes_SOURCES = SpcNodes/SpcNodes.cpp\328 SpcNodes/SpcNodes.h329 330 160 Shp2Kml_SOURCES = Shp2Kml/Shp2Kml.cpp\ 331 161 Shp2Kml/Shp2Kml.h 332 162 333 UpdateConstraints_SOURCES = UpdateConstraints/UpdateConstraints.cpp\334 UpdateConstraints/UpdateConstraints.h335 336 SystemMatrices_SOURCES = SystemMatrices/SystemMatrices.cpp\337 SystemMatrices/SystemMatrices.h338 339 340 CreateJacobianMatrix_SOURCES = CreateJacobianMatrix/CreateJacobianMatrix.cpp\341 CreateJacobianMatrix/CreateJacobianMatrix.h342 343 SurfaceArea_SOURCES = SurfaceArea/SurfaceArea.cpp\344 SurfaceArea/SurfaceArea.h345 346 TimeAdapt_SOURCES = TimeAdapt/TimeAdapt.cpp\347 TimeAdapt/TimeAdapt.h348 349 163 TriaSearch_SOURCES = TriaSearch/TriaSearch.cpp\ 350 164 TriaSearch/TriaSearch.h 351 165 … … 364 178 TriMeshRefine_SOURCES = TriMeshRefine/TriMeshRefine.cpp\ 365 179 TriMeshRefine/TriMeshRefine.h 366 180 367 InputUpdateFromConstant_SOURCES = InputUpdateFromConstant/InputUpdateFromConstant.cpp\368 InputUpdateFromConstant/InputUpdateFromConstant.h369 370 InputUpdateFromSolution_SOURCES = InputUpdateFromSolution/InputUpdateFromSolution.cpp\371 InputUpdateFromSolution/InputUpdateFromSolution.h372 373 InputUpdateFromVector_SOURCES = InputUpdateFromVector/InputUpdateFromVector.cpp\374 InputUpdateFromVector/InputUpdateFromVector.h375 376 UpdateVertexPositions_SOURCES = UpdateVertexPositions/UpdateVertexPositions.cpp\377 UpdateVertexPositions/UpdateVertexPositions.h378 379 UpdateDynamicConstraints_SOURCES = UpdateDynamicConstraints/UpdateDynamicConstraints.cpp\380 UpdateDynamicConstraints/UpdateDynamicConstraints.h381 382 ParsePetscOptions_SOURCES = ParsePetscOptions/ParsePetscOptions.cpp\383 ParsePetscOptions/ParsePetscOptions.h384 385 VerticesDof_SOURCES = VerticesDof/VerticesDof.cpp\386 VerticesDof/VerticesDof.h387 388 181 #}}} 389 #Dakota sources {{{1390 DakotaResponses_SOURCES = DakotaResponses/DakotaResponses.cpp\391 DakotaResponses/DakotaResponses.h392 Dakota_SOURCES = Dakota/Dakota.cpp\393 Dakota/Dakota.h394 InputUpdateFromDakota_SOURCES = InputUpdateFromDakota/InputUpdateFromDakota.cpp\395 InputUpdateFromDakota/InputUpdateFromDakota.h396 #}}} -
proj/ice/larour/issm-uci-clean/trunk-jpl/src/mex/TriMesh/TriMesh.h
17 17 #define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol 18 18 #endif 19 19 20 /*Header files: */ 20 21 #include "../../c/include/globals.h" 21 22 #include "../../c/toolkits/toolkits.h" 22 23 #include "../../c/include/include.h" … … 31 32 #define DOMAINOUTLINE (mxArray *)prhs[0] 32 33 #define AREA (mxArray *)prhs[1] 33 34 #define ORDER (mxArray *)prhs[2] 34 35 35 /* serial output macros: */ 36 36 #define INDEX (mxArray**)&plhs[0] 37 37 #define X (mxArray**)&plhs[1] 38 38 #define Y (mxArray**)&plhs[2] 39 39 #define SEGMENTS (mxArray**)&plhs[3] 40 40 #define SEGMENTMARKERLIST (mxArray**)&plhs[4] 41 42 41 #endif 42 43 43 #ifdef _HAVE_PYTHON_ 44 44 /* serial input macros: */ 45 45 #define DOMAINOUTLINE PyTuple_GetItem(args,0) 46 46 #define AREA PyTuple_GetItem(args,1) 47 47 #define ORDER PyTuple_GetItem(args,2) 48 49 48 /* serial output macros: */ 50 49 #define INDEX output,0 51 50 #define X output,1 … … 54 53 #define SEGMENTMARKERLIST output,4 55 54 #endif 56 55 57 /* local prototypes: */58 void TriMeshUsage(void);59 60 56 #undef __FUNCT__ 61 57 #define __FUNCT__ "TriMesh" 62 58 … … 66 62 #undef NRHS 67 63 #define NRHS 3 68 64 65 /* local prototypes: */ 66 void TriMeshUsage(void); 67 69 68 #endif /* _TRIMESH_H */
Note:
See TracBrowser
for help on using the repository browser.