Changeset 11843
- Timestamp:
- 04/01/12 11:21:00 (13 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 96 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Container/Options.cpp
r9883 r11843 31 31 } 32 32 /*}}}*/ 33 #ifdef _ SERIAL_33 #ifdef _HAVE_MATLAB_ 34 34 /*FUNCTION Options::Options(int istart, int nrhs, const mxArray* prhs[]){{{1*/ 35 35 Options::Options(int istart, int nrhs, const mxArray* prhs[]){ -
issm/trunk-jpl/src/c/Container/Options.h
r8536 r11843 15 15 /*constructors, destructors*/ 16 16 Options(); 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 Options(int istart, int nrhs, const mxArray* prhs[]); 19 19 #endif -
issm/trunk-jpl/src/c/Container/Results.cpp
r10989 r11843 65 65 /*}}}*/ 66 66 /*FUNCTION Results::Write{{{1*/ 67 #ifdef _ SERIAL_67 #ifdef _HAVE_MATLAB_ 68 68 void Results::Write(mxArray** pdataref){ 69 69 -
issm/trunk-jpl/src/c/Container/Results.h
r10522 r11843 26 26 /*numerics: {{{1*/ 27 27 Results* SpawnTriaResults(int* indices); 28 #ifdef _ SERIAL_28 #ifdef _HAVE_MATLAB_ 29 29 void Write(mxArray** pdataref); 30 30 #else -
issm/trunk-jpl/src/c/include/types.h
r11197 r11843 16 16 17 17 /*Define abstract type for I/O: */ 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include <mex.h> 20 20 typedef const mxArray* ConstDataHandle; //serially, we are reading data from a matlab array. -
issm/trunk-jpl/src/c/io/Matlab/FetchMatlabData.cpp
r11827 r11843 12 12 #include "../../include/include.h" 13 13 14 #ifdef _ SERIAL_14 #ifdef _HAVE_MATLAB_ 15 15 #include <mex.h> 16 16 /*FUNCTION FetchMatlabData(DataSet** pdataset,const mxArray* dataref){{{1*/ -
issm/trunk-jpl/src/c/io/Matlab/OptionParse.cpp
r11095 r11843 13 13 #include "./matlabio.h" 14 14 15 #ifdef _ SERIAL_15 #ifdef _HAVE_MATLAB_ 16 16 #include <mex.h> 17 17 -
issm/trunk-jpl/src/c/io/Matlab/WriteMatlabData.cpp
r11716 r11843 12 12 #include "../../shared/shared.h" 13 13 14 #ifdef _ SERIAL_14 #ifdef _HAVE_MATLAB_ 15 15 #include <mex.h> 16 16 -
issm/trunk-jpl/src/c/io/Matlab/matlabio.h
r11695 r11843 13 13 class Parameters; 14 14 15 #ifdef _ SERIAL_15 #ifdef _HAVE_MATLAB_ 16 16 #include <mex.h> 17 17 void WriteMatlabData(mxArray** pdataref,DataSet* dataset); -
issm/trunk-jpl/src/c/io/PrintfFunction.cpp
r11199 r11843 9 9 #include "../include/include.h" 10 10 11 #ifdef _ SERIAL_11 #ifdef _HAVE_MATLAB_ 12 12 #include "mex.h" 13 13 #endif … … 53 53 54 54 /*Ok, if we are running in parallel, get node 0 to print*/ 55 #if defined(_PARALLEL_) 55 #ifdef _HAVE_MATLAB_ 56 mexPrintf(buffer); 57 #else 56 58 if(my_rank==0)printf(buffer); 57 #else58 mexPrintf(buffer);59 59 #endif 60 60 -
issm/trunk-jpl/src/c/io/io.h
r11199 r11843 15 15 #include "./Disk/diskio.h" 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include "./Matlab/matlabio.h" 19 19 #endif -
issm/trunk-jpl/src/c/modules/Dakotax/Dakotax.cpp
r9585 r11843 51 51 #endif 52 52 53 #ifdef _ SERIAL_53 #ifdef _HAVE_MATLAB_ 54 54 void Dakotax(mxArray* femmodel){ 55 55 #else -
issm/trunk-jpl/src/c/modules/Dakotax/Dakotax.h
r9795 r11843 13 13 int DescriptorIndex(char* root, int* pindex,char* descriptor); 14 14 15 #ifdef _ SERIAL_15 #ifdef _HAVE_MATLAB_ 16 16 void Dakotax(mxArray* femmodel); 17 17 void SpawnCoreSerial(double* responses, int numresponses, double* variables, char** variables_descriptors,int numvariables, mxArray* femmodel,int counter); -
issm/trunk-jpl/src/c/modules/Dakotax/SpawnCore.cpp
r9571 r11843 21 21 /*Branch into a serial SpawnCore and a parallel SpawnCore: */ 22 22 23 #ifdef _ SERIAL_23 #ifdef _HAVE_MATLAB_ 24 24 SpawnCoreSerial(responses, numresponses, variables, variables_descriptors,numvariables, (mxArray*)femmodel, counter); 25 25 #else -
issm/trunk-jpl/src/c/modules/Dakotax/SpawnCoreSerial.cpp
r10308 r11843 18 18 #include "../../include/include.h" 19 19 20 #ifdef _HAVE_MATLAB_ 20 21 void SpawnCoreSerial(double* responses, int numresponses, double* variables, char** variables_descriptors,int numvariables, mxArray* femmodel, int counter){ 21 22 … … 68 69 69 70 } 71 #endif -
issm/trunk-jpl/src/c/modules/InterpFromGridToMeshx/InterpFromGridToMeshx.h
r11695 r11843 6 6 #define _INTERPFROMGRIDTOMESHX_H 7 7 8 #include "../../objects/objects.h" 8 9 #include "../../toolkits/toolkits.h" 9 10 #include "../../EnumDefinitions/EnumDefinitions.h" -
issm/trunk-jpl/src/c/modules/InterpFromMeshToMesh3dx/InterpFromMeshToMesh3dx.h
r11695 r11843 7 7 8 8 #include "../../toolkits/toolkits.h" 9 #include "../../objects/objects.h" 9 10 10 11 int InterpFromMeshToMesh3dx( Vector** pdata_prime,double* index_data, double* x_data, double* y_data, double* z_data, int nods_data,int nels_data, double* data, int data_length, double* x_prime, double* y_prime, double* z_prime, int nods_prime,double default_value); -
issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.cpp
r11827 r11843 16 16 #include "../../objects/objects.h" 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 void OutputResultsx(mxArray** pdataref, Elements* elements, Nodes* nodes, Vertices* vertices, Loads* loads, Materials* materials, Parameters* parameters,Results* results){ 20 20 #else … … 31 31 bool dakota_analysis = false; 32 32 33 #ifdef _ SERIAL_33 #ifdef _HAVE_MATLAB_ 34 34 const char **fnames = NULL; 35 35 mwSize onebyone[2] = {0,0}; … … 43 43 if(dakota_analysis){ 44 44 //no need to output anything, Dakota analysis has different outputs 45 #ifdef _ SERIAL_45 #ifdef _HAVE_MATLAB_ 46 46 *pdataref=mxCreateStructArray( ndim,onebyone,nfields,fnames); 47 47 #endif … … 91 91 92 92 /*Write results to disk (in parallel), or to memory (in serial mode): */ 93 #ifdef _ SERIAL_93 #ifdef _HAVE_MATLAB_ 94 94 results->Write(pdataref); 95 95 #else -
issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.h
r11827 r11843 14 14 #include "../../Container/Container.h" 15 15 16 #ifdef _ SERIAL_16 #ifdef _HAVE_MATLAB_ 17 17 #include <mex.h> 18 18 void OutputResultsx(mxArray** pdataref, Elements* elements, Nodes* nodes, Vertices* vertices, Loads* loads, Materials* materials, Parameters* parameters, Results* results); -
issm/trunk-jpl/src/c/objects/Bamg/BamgGeom.cpp
r11093 r11843 19 19 /*}}}*/ 20 20 /*FUNCTION BamgGeom::BamgGeom(mxArray* matlab_struct){{{1*/ 21 #ifdef _ SERIAL_21 #ifdef _HAVE_MATLAB_ 22 22 BamgGeom::BamgGeom(mxArray* matlab_struct){ 23 23 … … 51 51 /*Methods*/ 52 52 /*FUNCTION BamgGeom::SetMatlabStructureFields{{{1*/ 53 #ifdef _ SERIAL_53 #ifdef _HAVE_MATLAB_ 54 54 void BamgGeom::SetMatlabStructureFields(mxArray** matlab_struct){ 55 55 … … 94 94 /*}}}*/ 95 95 /*FUNCTION BamgGeom::SetMatlabStructureField{{{1*/ 96 #ifdef _ SERIAL_96 #ifdef _HAVE_MATLAB_ 97 97 void BamgGeom::SetMatlabStructureField(mxArray* matlab_struct,const char* fieldname,int fieldrows,int fieldcols,double* fieldpointer){ 98 98 -
issm/trunk-jpl/src/c/objects/Bamg/BamgGeom.h
r5187 r11843 5 5 #define _BAMGGEOM_H_ 6 6 7 #ifdef _ SERIAL_7 #ifdef _HAVE_MATLAB_ 8 8 #include <mex.h> 9 9 #endif … … 30 30 31 31 BamgGeom(); 32 #ifdef _ SERIAL_32 #ifdef _HAVE_MATLAB_ 33 33 BamgGeom(mxArray* matlab_struct); 34 34 #endif 35 35 ~BamgGeom(); 36 36 37 #ifdef _ SERIAL_37 #ifdef _HAVE_MATLAB_ 38 38 void SetMatlabStructureFields(mxArray** matlab_struct); 39 39 void SetMatlabStructureField(mxArray* matlab_struct,const char* fieldname,int fieldrows,int fieldcols,double* fieldpointer); -
issm/trunk-jpl/src/c/objects/Bamg/BamgMesh.cpp
r11093 r11843 32 32 /*}}}*/ 33 33 /*FUNCTION BamgMesh::BamgMesh(mxArray* matlab_struct){{{1*/ 34 #ifdef _ SERIAL_34 #ifdef _HAVE_MATLAB_ 35 35 BamgMesh::BamgMesh(mxArray* matlab_struct){ 36 36 … … 91 91 /*Methods*/ 92 92 /*FUNCTION BamgMesh::SetMatlabStructureFields{{{1*/ 93 #ifdef _ SERIAL_93 #ifdef _HAVE_MATLAB_ 94 94 void BamgMesh::SetMatlabStructureFields(mxArray** matlab_struct){ 95 95 … … 152 152 /*}}}*/ 153 153 /*FUNCTION BamgMesh::SetMatlabStructureField{{{1*/ 154 #ifdef _ SERIAL_154 #ifdef _HAVE_MATLAB_ 155 155 void BamgMesh::SetMatlabStructureField(mxArray* matlab_struct,const char* fieldname,int fieldrows,int fieldcols,double* fieldpointer){ 156 156 -
issm/trunk-jpl/src/c/objects/Bamg/BamgMesh.h
r5573 r11843 5 5 #define _BAMGMESH_H_ 6 6 7 #ifdef _ SERIAL_7 #ifdef _HAVE_MATLAB_ 8 8 #include <mex.h> 9 9 #endif … … 51 51 52 52 BamgMesh(); 53 #ifdef _ SERIAL_53 #ifdef _HAVE_MATLAB_ 54 54 BamgMesh(mxArray* matlab_struct); 55 55 #endif 56 56 ~BamgMesh(); 57 57 58 #ifdef _ SERIAL_58 #ifdef _HAVE_MATLAB_ 59 59 void SetMatlabStructureFields(mxArray** matlab_struct); 60 60 void SetMatlabStructureField(mxArray* matlab_struct,const char* fieldname,int fieldrows,int fieldcols,double* fieldpointer); -
issm/trunk-jpl/src/c/objects/Bamg/BamgOpts.cpp
r9320 r11843 42 42 /*}}}*/ 43 43 /*FUNCTION BamgOpts::BamgOpts(mxArray* matlab_struct){{{1*/ 44 #ifdef _ SERIAL_44 #ifdef _HAVE_MATLAB_ 45 45 BamgOpts::BamgOpts(mxArray* matlab_struct){ 46 46 -
issm/trunk-jpl/src/c/objects/Bamg/BamgOpts.h
r5187 r11843 6 6 #define _BAMGOPTS_H_ 7 7 8 #ifdef _ SERIAL_8 #ifdef _HAVE_MATLAB_ 9 9 #include <mex.h> 10 10 #endif … … 54 54 55 55 BamgOpts(); 56 #ifdef _ SERIAL_56 #ifdef _HAVE_MATLAB_ 57 57 BamgOpts(mxArray* matlab_struct); 58 58 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/BoolExternalResult.cpp
r11205 r11843 186 186 /*}}}*/ 187 187 /*FUNCTION BoolExternalResult::SetMatlabField{{{1*/ 188 #ifdef _ SERIAL_188 #ifdef _HAVE_MATLAB_ 189 189 void BoolExternalResult::SetMatlabField(mxArray* dataref){ 190 190 -
issm/trunk-jpl/src/c/objects/ExternalResults/BoolExternalResult.h
r11202 r11843 16 16 #endif 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include <mex.h> 20 20 #endif … … 59 59 void WriteData(FILE* fid,bool io_gather); 60 60 void GetResultName(char**); 61 #ifdef _ SERIAL_61 #ifdef _HAVE_MATLAB_ 62 62 void SetMatlabField(mxArray* dataref); 63 63 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleExternalResult.cpp
r11205 r11843 182 182 /*}}}*/ 183 183 /*FUNCTION DoubleExternalResult::SetMatlabField{{{1*/ 184 #ifdef _ SERIAL_184 #ifdef _HAVE_MATLAB_ 185 185 void DoubleExternalResult::SetMatlabField(mxArray* dataref){ 186 186 -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleExternalResult.h
r11202 r11843 16 16 #endif 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include <mex.h> 20 20 #endif … … 60 60 void WriteData(FILE* fid,bool io_gather); 61 61 void GetResultName(char**); 62 #ifdef _ SERIAL_62 #ifdef _HAVE_MATLAB_ 63 63 void SetMatlabField(mxArray* dataref); 64 64 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleMatExternalResult.cpp
r11205 r11843 223 223 /*}}}*/ 224 224 /*FUNCTION DoubleMatExternalResult::SetMatlabField{{{1*/ 225 #ifdef _ SERIAL_225 #ifdef _HAVE_MATLAB_ 226 226 void DoubleMatExternalResult::SetMatlabField(mxArray* dataref){ 227 227 -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleMatExternalResult.h
r11202 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 61 61 void WriteData(FILE* fid,bool io_gather); 62 62 void GetResultName(char**); 63 #ifdef _ SERIAL_63 #ifdef _HAVE_MATLAB_ 64 64 void SetMatlabField(mxArray* dataref); 65 65 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleVecExternalResult.cpp
r11205 r11843 207 207 /*}}}*/ 208 208 /*FUNCTION DoubleVecExternalResult::SetMatlabField{{{1*/ 209 #ifdef _ SERIAL_209 #ifdef _HAVE_MATLAB_ 210 210 void DoubleVecExternalResult::SetMatlabField(mxArray* dataref){ 211 211 -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleVecExternalResult.h
r11202 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 60 60 void WriteData(FILE* fid,bool io_gather); 61 61 void GetResultName(char**); 62 #ifdef _ SERIAL_62 #ifdef _HAVE_MATLAB_ 63 63 void SetMatlabField(mxArray* dataref); 64 64 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/ExternalResult.h
r11202 r11843 16 16 #endif 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include <mex.h> 20 20 #endif … … 33 33 virtual void WriteData(FILE* fid,bool io_gather)=0; 34 34 virtual void GetResultName(char**)=0; 35 #ifdef _ SERIAL_35 #ifdef _HAVE_MATLAB_ 36 36 virtual void SetMatlabField(mxArray* dataref)=0; 37 37 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/IntExternalResult.cpp
r11205 r11843 186 186 /*}}}*/ 187 187 /*FUNCTION IntExternalResult::SetMatlabField{{{1*/ 188 #ifdef _ SERIAL_188 #ifdef _HAVE_MATLAB_ 189 189 void IntExternalResult::SetMatlabField(mxArray* dataref){ 190 190 -
issm/trunk-jpl/src/c/objects/ExternalResults/IntExternalResult.h
r11202 r11843 16 16 #endif 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include <mex.h> 20 20 #endif … … 58 58 void WriteData(FILE* fid,bool io_gather); 59 59 void GetResultName(char**); 60 #ifdef _ SERIAL_60 #ifdef _HAVE_MATLAB_ 61 61 void SetMatlabField(mxArray* dataref); 62 62 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/PetscVecExternalResult.cpp
r11695 r11843 245 245 /*}}}*/ 246 246 /*FUNCTION PetscVecExternalResult::SetMatlabField{{{1*/ 247 #ifdef _ SERIAL_247 #ifdef _HAVE_MATLAB_ 248 248 void PetscVecExternalResult::SetMatlabField(mxArray* dataref){ 249 249 -
issm/trunk-jpl/src/c/objects/ExternalResults/PetscVecExternalResult.h
r11695 r11843 16 16 #endif 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include <mex.h> 20 20 #endif … … 60 60 void WriteData(FILE* fid,bool io_gather); 61 61 void GetResultName(char**); 62 #ifdef _ SERIAL_62 #ifdef _HAVE_MATLAB_ 63 63 void SetMatlabField(mxArray* dataref); 64 64 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/StringExternalResult.cpp
r11205 r11843 198 198 /*}}}*/ 199 199 /*FUNCTION StringExternalResult::SetMatlabField{{{1*/ 200 #ifdef _ SERIAL_200 #ifdef _HAVE_MATLAB_ 201 201 void StringExternalResult::SetMatlabField(mxArray* dataref){ 202 202 -
issm/trunk-jpl/src/c/objects/ExternalResults/StringExternalResult.h
r11202 r11843 16 16 #endif 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include <mex.h> 20 20 #endif … … 58 58 void WriteData(FILE* fid,bool io_gather); 59 59 void GetResultName(char**); 60 #ifdef _ SERIAL_60 #ifdef _HAVE_MATLAB_ 61 61 void SetMatlabField(mxArray* dataref); 62 62 #endif -
issm/trunk-jpl/src/c/objects/Numerics/Matrix.cpp
r11777 r11843 140 140 /*}}}*/ 141 141 142 #ifdef _ SERIAL_142 #ifdef _HAVE_MATLAB_ 143 143 /*FUNCTION Matrix::ToMatlabMatrix{{{1*/ 144 144 mxArray* Matrix::ToMatlabMatrix(void){ -
issm/trunk-jpl/src/c/objects/Numerics/Matrix.h
r11743 r11843 21 21 #endif 22 22 23 #ifdef _ SERIAL_23 #ifdef _HAVE_MATLAB_ 24 24 #include "mex.h" 25 25 #endif … … 51 51 /*Matrix specific routines {{{1*/ 52 52 void Echo(void); 53 #ifdef _ SERIAL_53 #ifdef _HAVE_MATLAB_ 54 54 mxArray* ToMatlabMatrix(void); 55 55 #endif … … 66 66 }; 67 67 /*API: */ 68 #ifdef _ SERIAL_68 #ifdef _HAVE_MATLAB_ 69 69 Matrix* MatlabMatrixToMatrix(const mxArray* mxmatrix); 70 70 #endif -
issm/trunk-jpl/src/c/objects/Numerics/Vector.cpp
r11769 r11843 133 133 /*}}}*/ 134 134 135 #ifdef _ SERIAL_135 #ifdef _HAVE_MATLAB_ 136 136 /*FUNCTION Vector::ToMatlabVector{{{1*/ 137 137 mxArray* Vector::ToMatlabVector(void){ -
issm/trunk-jpl/src/c/objects/Numerics/Vector.h
r11759 r11843 21 21 #endif 22 22 23 #ifdef _ SERIAL_23 #ifdef _HAVE_MATLAB_ 24 24 #include "mex.h" 25 25 #endif … … 54 54 /*Vector specific routines {{{1*/ 55 55 void Echo(void); 56 #ifdef _ SERIAL_56 #ifdef _HAVE_MATLAB_ 57 57 mxArray* ToMatlabVector(void); 58 58 #endif … … 78 78 79 79 /*API: */ 80 #ifdef _ SERIAL_80 #ifdef _HAVE_MATLAB_ 81 81 Vector* MatlabVectorToVector(const mxArray* mxvector); 82 82 #endif -
issm/trunk-jpl/src/c/objects/OptArgs.h
r8601 r11843 6 6 #define _OPTARGS_H_ 7 7 8 #ifdef _ SERIAL_8 #ifdef _HAVE_MATLAB_ 9 9 10 10 #include "mex.h" -
issm/trunk-jpl/src/c/objects/Params/BoolParam.cpp
r11202 r11843 135 135 /*}}}*/ 136 136 /*FUNCTION BoolParam::SetMatlabField{{{1*/ 137 #ifdef _ SERIAL_137 #ifdef _HAVE_MATLAB_ 138 138 void BoolParam::SetMatlabField(mxArray* dataref){ 139 139 char* name=NULL; -
issm/trunk-jpl/src/c/objects/Params/BoolParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 81 81 82 82 void GetParameterName(char**pname); 83 #ifdef _ SERIAL_83 #ifdef _HAVE_MATLAB_ 84 84 void SetMatlabField(mxArray* dataref); 85 85 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleMatArrayParam.cpp
r11202 r11843 309 309 /*}}}*/ 310 310 /*FUNCTION StringArrayParam::SetMatlabField{{{1*/ 311 #ifdef _ SERIAL_311 #ifdef _HAVE_MATLAB_ 312 312 void DoubleMatArrayParam::SetMatlabField(mxArray* dataref){ 313 313 -
issm/trunk-jpl/src/c/objects/Params/DoubleMatArrayParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 84 84 85 85 void GetParameterName(char**pname); 86 #ifdef _ SERIAL_86 #ifdef _HAVE_MATLAB_ 87 87 void SetMatlabField(mxArray* dataref); 88 88 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleMatParam.cpp
r11202 r11843 191 191 /*}}}*/ 192 192 /*FUNCTION DoubleMatParam::SetMatlabField{{{1*/ 193 #ifdef _ SERIAL_193 #ifdef _HAVE_MATLAB_ 194 194 void DoubleMatParam::SetMatlabField(mxArray* dataref){ 195 195 -
issm/trunk-jpl/src/c/objects/Params/DoubleMatParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 84 84 85 85 void GetParameterName(char**pname); 86 #ifdef _ SERIAL_86 #ifdef _HAVE_MATLAB_ 87 87 void SetMatlabField(mxArray* dataref); 88 88 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleParam.cpp
r11202 r11843 220 220 /*}}}*/ 221 221 /*FUNCTION DoubleParam::SetMatlabField{{{1*/ 222 #ifdef _ SERIAL_222 #ifdef _HAVE_MATLAB_ 223 223 void DoubleParam::SetMatlabField(mxArray* dataref){ 224 224 -
issm/trunk-jpl/src/c/objects/Params/DoubleParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ SERIAL_84 #ifdef _HAVE_MATLAB_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleTransientMatParam.h
r10660 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleVecParam.cpp
r11202 r11843 203 203 /*}}}*/ 204 204 /*FUNCTION DoubleVecParam::SetMatlabField{{{1*/ 205 #ifdef _ SERIAL_205 #ifdef _HAVE_MATLAB_ 206 206 void DoubleVecParam::SetMatlabField(mxArray* dataref){ 207 207 -
issm/trunk-jpl/src/c/objects/Params/DoubleVecParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ SERIAL_84 #ifdef _HAVE_MATLAB_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/FileParam.cpp
r11202 r11843 102 102 /*}}}*/ 103 103 /*FUNCTION FileParam::SetMatlabField{{{1*/ 104 #ifdef _ SERIAL_104 #ifdef _HAVE_MATLAB_ 105 105 void FileParam::SetMatlabField(mxArray* dataref){ 106 106 -
issm/trunk-jpl/src/c/objects/Params/FileParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 81 81 82 82 void GetParameterName(char**pname); 83 #ifdef _ SERIAL_83 #ifdef _HAVE_MATLAB_ 84 84 void SetMatlabField(mxArray* dataref); 85 85 #endif -
issm/trunk-jpl/src/c/objects/Params/IntMatParam.cpp
r11202 r11843 173 173 /*}}}*/ 174 174 /*FUNCTION IntMatParam::SetMatlabField{{{1*/ 175 #ifdef _ SERIAL_175 #ifdef _HAVE_MATLAB_ 176 176 void IntMatParam::SetMatlabField(mxArray* dataref){ 177 177 -
issm/trunk-jpl/src/c/objects/Params/IntMatParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 83 83 84 84 void GetParameterName(char**pname); 85 #ifdef _ SERIAL_85 #ifdef _HAVE_MATLAB_ 86 86 void SetMatlabField(mxArray* dataref); 87 87 #endif -
issm/trunk-jpl/src/c/objects/Params/IntParam.cpp
r11202 r11843 135 135 /*}}}*/ 136 136 /*FUNCTION IntParam::SetMatlabField{{{1*/ 137 #ifdef _ SERIAL_137 #ifdef _HAVE_MATLAB_ 138 138 void IntParam::SetMatlabField(mxArray* dataref){ 139 139 -
issm/trunk-jpl/src/c/objects/Params/IntParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ SERIAL_84 #ifdef _HAVE_MATLAB_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/IntVecParam.cpp
r11202 r11843 186 186 /*}}}*/ 187 187 /*FUNCTION IntVecParam::SetMatlabField{{{1*/ 188 #ifdef _ SERIAL_188 #ifdef _HAVE_MATLAB_ 189 189 void IntVecParam::SetMatlabField(mxArray* dataref){ 190 190 -
issm/trunk-jpl/src/c/objects/Params/IntVecParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 83 83 84 84 void GetParameterName(char**pname); 85 #ifdef _ SERIAL_85 #ifdef _HAVE_MATLAB_ 86 86 void SetMatlabField(mxArray* dataref); 87 87 #endif -
issm/trunk-jpl/src/c/objects/Params/MatrixParam.cpp
r11695 r11843 191 191 /*}}}*/ 192 192 /*FUNCTION MatrixParam::SetMatlabField{{{1*/ 193 #ifdef _ SERIAL_193 #ifdef _HAVE_MATLAB_ 194 194 void MatrixParam::SetMatlabField(mxArray* dataref){ 195 195 -
issm/trunk-jpl/src/c/objects/Params/MatrixParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ SERIAL_84 #ifdef _HAVE_MATLAB_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/Param.h
r11695 r11843 16 16 #endif 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include <mex.h> 20 20 #endif … … 60 60 virtual void UnitConversion(int direction_enum)=0; 61 61 virtual void GetParameterName(char**pname)=0; 62 #ifdef _ SERIAL_62 #ifdef _HAVE_MATLAB_ 63 63 virtual void SetMatlabField(mxArray* dataref)=0; 64 64 #endif -
issm/trunk-jpl/src/c/objects/Params/StringArrayParam.cpp
r11202 r11843 237 237 /*}}}*/ 238 238 /*FUNCTION StringArrayParam::SetMatlabField{{{1*/ 239 #ifdef _ SERIAL_239 #ifdef _HAVE_MATLAB_ 240 240 void StringArrayParam::SetMatlabField(mxArray* dataref){ 241 241 -
issm/trunk-jpl/src/c/objects/Params/StringArrayParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 84 84 85 85 void GetParameterName(char**pname); 86 #ifdef _ SERIAL_86 #ifdef _HAVE_MATLAB_ 87 87 void SetMatlabField(mxArray* dataref); 88 88 #endif -
issm/trunk-jpl/src/c/objects/Params/StringParam.cpp
r11202 r11843 165 165 /*}}}*/ 166 166 /*FUNCTION StringParam::SetMatlabField{{{1*/ 167 #ifdef _ SERIAL_167 #ifdef _HAVE_MATLAB_ 168 168 void StringParam::SetMatlabField(mxArray* dataref){ 169 169 -
issm/trunk-jpl/src/c/objects/Params/StringParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ SERIAL_84 #ifdef _HAVE_MATLAB_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/VectorParam.cpp
r11695 r11843 189 189 /*}}}*/ 190 190 /*FUNCTION VectorParam::SetMatlabField{{{1*/ 191 #ifdef _ SERIAL_191 #ifdef _HAVE_MATLAB_ 192 192 void VectorParam::SetMatlabField(mxArray* dataref){ 193 193 -
issm/trunk-jpl/src/c/objects/Params/VectorParam.h
r11695 r11843 15 15 #endif 16 16 17 #ifdef _ SERIAL_17 #ifdef _HAVE_MATLAB_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ SERIAL_84 #ifdef _HAVE_MATLAB_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp
r11730 r11843 70 70 71 71 if (pv && *pv){ 72 #if def _SERIAL_72 #if defined(_HAVE_MATLAB_) && defined(_SERIAL_) 73 73 mxFree(*pv); 74 74 #else … … 125 125 if(!size)_error_("attempting to realloc to zero"); 126 126 127 #ifndef MATLAB 127 #ifdef _HAVE_MATLAB_ 128 value = (void*)mxRealloc(pv,size); 129 #else 128 130 value = (void*)realloc(pv,size); 129 #else130 value = (void*)mxRealloc(pv,size);131 131 #endif 132 132 -
issm/trunk-jpl/src/c/shared/Exceptions/Exceptions.cpp
r9761 r11843 11 11 #include "../shared.h" 12 12 #include "../../include/include.h" 13 #ifdef _ SERIAL_13 #ifdef _HAVE_MATLAB_ 14 14 #include "mex.h" 15 15 #endif … … 45 45 } 46 46 else{ 47 #ifdef _PARALLEL_ 47 #ifdef _HAVE_MATLAB_ 48 mexErrMsgTxt(exprintf("\n??? Error using ==> %s at %i\n%s error message: %s\n", 49 file_name.c_str(),file_line,function_name.c_str(),what())); 50 #else 48 51 printf("\n[%i] ??? Error using ==> %s:%i\n",my_rank,file_name.c_str(),file_line); 49 52 printf("[%i] %s error message: %s\n\n",my_rank,function_name.c_str(),what()); 50 #else51 mexErrMsgTxt(exprintf("\n??? Error using ==> %s at %i\n%s error message: %s\n",52 file_name.c_str(),file_line,function_name.c_str(),what()));53 53 #endif 54 54 } -
issm/trunk-jpl/src/c/shared/Exp/exp.h
r11695 r11843 7 7 #define _EXP_H_ 8 8 9 #include "../../objects/objects.h" 9 10 #include "../../toolkits/toolkits.h" 10 11 -
issm/trunk-jpl/src/c/shared/Matlab/CheckNumMatlabArguments.cpp
r11198 r11843 3 3 */ 4 4 5 #ifdef _ SERIAL_5 #ifdef _HAVE_MATLAB_ 6 6 7 7 #include "../Exceptions/exceptions.h" -
issm/trunk-jpl/src/c/shared/Matlab/matlabshared.h
r11198 r11843 10 10 11 11 #ifdef _SERIAL_ 12 int ModuleBoot(void); 13 int ModuleEnd(void); 14 #endif 15 16 #ifdef _HAVE_MATLAB_ 12 17 #include "mex.h" 13 int ModuleBoot(void); 14 int ModuleEnd(void); 15 mxArray* mxGetAssignedField(const mxArray* pmxa_array,int number, const char* field); 16 int CheckNumMatlabArguments(int nlhs,int NLHS, int nrhs,int NRHS, const char* THISFUNCTION, void (*function)( void )); 18 mxArray* mxGetAssignedField(const mxArray* pmxa_array,int number, const char* field); 19 int CheckNumMatlabArguments(int nlhs,int NLHS, int nrhs,int NRHS, const char* THISFUNCTION, void (*function)( void )); 17 20 #endif 18 21 -
issm/trunk-jpl/src/c/shared/Matlab/mxGetAssignedField.cpp
r11198 r11843 9 9 10 10 11 #ifdef _ SERIAL_11 #ifdef _HAVE_MATLAB_ 12 12 13 13 #include "mex.h" -
issm/trunk-jpl/src/c/shared/Numerics/OptFunc.cpp
r9320 r11843 13 13 #include "../../include/include.h" 14 14 15 #ifdef _ SERIAL_15 #ifdef _HAVE_MATLAB_ 16 16 #include "mex.h" 17 17 double OptFunc(double scalar, OptArgs* optargs){ -
issm/trunk-jpl/src/c/shared/Numerics/Verbosity.cpp
r11401 r11843 18 18 #include "../../include/macros.h" 19 19 #include "../Exceptions/exceptions.h" 20 #ifdef _ SERIAL_20 #ifdef _HAVE_MATLAB_ 21 21 #include <mex.h> 22 22 #endif … … 39 39 if(level<0) _error_("vebosity level should be a positive integer (user provided %i)",level); 40 40 41 #ifdef _ SERIAL_41 #ifdef _HAVE_MATLAB_ 42 42 43 43 mxArray* output=NULL; … … 54 54 /*FUNCTION GetVerbosityLevel {{{*/ 55 55 int GetVerbosityLevel(void){ 56 #ifdef _ SERIAL_56 #ifdef _HAVE_MATLAB_ 57 57 58 58 mxArray* output=NULL; -
issm/trunk-jpl/src/c/toolkits/double/MatlabMatrixToDoubleMatrix.cpp
r11761 r11843 11 11 12 12 13 #ifdef _ SERIAL_13 #ifdef _HAVE_MATLAB_ 14 14 15 15 /*Matlab includes: */ -
issm/trunk-jpl/src/c/toolkits/double/MatlabVectorToDoubleVector.cpp
r11761 r11843 11 11 12 12 13 #ifdef _ SERIAL_13 #ifdef _HAVE_MATLAB_ 14 14 15 15 #include <string.h> -
issm/trunk-jpl/src/c/toolkits/double/double.h
r11695 r11843 6 6 #define _DOUBLE_H_ 7 7 8 #ifdef _ SERIAL_8 #ifdef _HAVE_MATLAB_ 9 9 #include "mex.h" 10 10 int MatlabMatrixToDoubleMatrix(double** pmatrix,int* pmatrix_rows,int* pmatrix_cols,const mxArray* mxmatrix); -
issm/trunk-jpl/src/c/toolkits/issm/SeqMat.cpp
r11762 r11843 93 93 /*}}}*/ 94 94 95 #ifdef _ SERIAL_95 #ifdef _HAVE_MATLAB_ 96 96 /*FUNCTION SeqMat::ToMatlabMatrix{{{1*/ 97 97 mxArray* SeqMat::ToMatlabMatrix(void){ -
issm/trunk-jpl/src/c/toolkits/issm/SeqMat.h
r11733 r11843 16 16 #include "../toolkitsenums.h" 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include "mex.h" 20 20 #endif … … 40 40 /*SeqMat specific routines {{{1*/ 41 41 void Echo(void); 42 #ifdef _ SERIAL_42 #ifdef _HAVE_MATLAB_ 43 43 mxArray* ToMatlabMatrix(void); 44 44 #endif … … 56 56 57 57 /*API :*/ 58 #ifdef _ SERIAL_58 #ifdef _HAVE_MATLAB_ 59 59 SeqMat* MatlabMatrixToSeqMat(const mxArray* dataref); 60 60 #endif -
issm/trunk-jpl/src/c/toolkits/issm/SeqVec.cpp
r11762 r11843 66 66 /*}}}*/ 67 67 68 #ifdef _ SERIAL_68 #ifdef _HAVE_MATLAB_ 69 69 /*FUNCTION SeqVec::ToMatlabVector{{{1*/ 70 70 mxArray* SeqVec::ToMatlabVector(void){ -
issm/trunk-jpl/src/c/toolkits/issm/SeqVec.h
r11733 r11843 16 16 #include "../toolkitsenums.h" 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include "mex.h" 20 20 #endif … … 37 37 /*SeqVec specific routines {{{1*/ 38 38 void Echo(void); 39 #ifdef _ SERIAL_39 #ifdef _HAVE_MATLAB_ 40 40 mxArray* ToMatlabVector(void); 41 41 #endif … … 61 61 62 62 /*API :*/ 63 #ifdef _ SERIAL_63 #ifdef _HAVE_MATLAB_ 64 64 SeqVec* MatlabVectorToSeqVec(const mxArray* dataref); 65 65 #endif -
issm/trunk-jpl/src/c/toolkits/matlab/MatlabNArrayToNArray.cpp
r9320 r11843 13 13 #include "../../include/include.h" 14 14 15 #ifdef _ SERIAL_15 #ifdef _HAVE_MATLAB_ 16 16 #include <mex.h> 17 17 -
issm/trunk-jpl/src/c/toolkits/matlab/matlabincludes.h
r11763 r11843 6 6 #define _MATLAB_INCLUDES_H_ 7 7 8 #ifdef _ SERIAL_8 #ifdef _HAVE_MATLAB_ 9 9 #include <mex.h> 10 10 class Matrix; -
issm/trunk-jpl/src/c/toolkits/petsc/patches/MatlabMatrixToPetscMatrix.cpp
r11743 r11843 11 11 12 12 13 #ifdef _ SERIAL_13 #ifdef _HAVE_MATLAB_ 14 14 15 15 /*Petsc includes: */ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/MatlabVectorToPetscVector.cpp
r11743 r11843 11 11 12 12 13 #ifdef _ SERIAL_13 #ifdef _HAVE_MATLAB_ 14 14 15 15 /*Petsc includes: */ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscMatrixToMatlabMatrix.cpp
r9320 r11843 11 11 12 12 13 #ifdef _ SERIAL_13 #ifdef _HAVE_MATLAB_ 14 14 15 15 /*Petsc includes: */ … … 144 144 } 145 145 146 #endif //#ifdef _SERIAL_146 #endif -
issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscVectorToMatlabVector.cpp
r11716 r11843 11 11 12 12 13 #ifdef _ SERIAL_13 #ifdef _HAVE_MATLAB_ 14 14 15 15 /*Petsc includes: */ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/SerialToVec.cpp
r9320 r11843 13 13 #include "petscvec.h" 14 14 #include "petscksp.h" 15 16 /*Matlab includes: */17 #ifdef _SERIAL_18 #include "mex.h"19 #endif20 15 21 16 #include "../../../shared/shared.h" -
issm/trunk-jpl/src/c/toolkits/petsc/patches/petscpatches.h
r11695 r11843 16 16 class Parameters; 17 17 18 #ifdef _ SERIAL_18 #ifdef _HAVE_MATLAB_ 19 19 #include "mex.h" 20 20 int MatlabMatrixToPetscMatrix(Mat* matrix,int* prows,int* pcols, const mxArray* mxmatrix);
Note:
See TracChangeset
for help on using the changeset viewer.