Changeset 11853
- Timestamp:
- 04/02/12 11:22:58 (13 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 93 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Container/Options.cpp
r11843 r11853 31 31 } 32 32 /*}}}*/ 33 #ifdef _ HAVE_MATLAB_33 #ifdef _SERIAL_ 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
r11843 r11853 15 15 /*constructors, destructors*/ 16 16 Options(); 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 Options(int istart, int nrhs, const mxArray* prhs[]); 19 19 #endif -
issm/trunk-jpl/src/c/Container/Results.cpp
r11843 r11853 65 65 /*}}}*/ 66 66 /*FUNCTION Results::Write{{{1*/ 67 #ifdef _ HAVE_MATLAB_67 #ifdef _SERIAL_ 68 68 void Results::Write(mxArray** pdataref){ 69 69 -
issm/trunk-jpl/src/c/Container/Results.h
r11843 r11853 26 26 /*numerics: {{{1*/ 27 27 Results* SpawnTriaResults(int* indices); 28 #ifdef _ HAVE_MATLAB_28 #ifdef _SERIAL_ 29 29 void Write(mxArray** pdataref); 30 30 #else -
issm/trunk-jpl/src/c/include/types.h
r11843 r11853 16 16 17 17 /*Define abstract type for I/O: */ 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 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
r11843 r11853 12 12 #include "../../include/include.h" 13 13 14 #ifdef _ HAVE_MATLAB_14 #ifdef _SERIAL_ 15 15 #include <mex.h> 16 16 /*FUNCTION FetchMatlabData(DataSet** pdataset,const mxArray* dataref){{{1*/ -
issm/trunk-jpl/src/c/io/Matlab/OptionParse.cpp
r11843 r11853 13 13 #include "./matlabio.h" 14 14 15 #ifdef _ HAVE_MATLAB_15 #ifdef _SERIAL_ 16 16 #include <mex.h> 17 17 -
issm/trunk-jpl/src/c/io/Matlab/WriteMatlabData.cpp
r11843 r11853 12 12 #include "../../shared/shared.h" 13 13 14 #ifdef _ HAVE_MATLAB_14 #ifdef _SERIAL_ 15 15 #include <mex.h> 16 16 -
issm/trunk-jpl/src/c/io/Matlab/matlabio.h
r11843 r11853 13 13 class Parameters; 14 14 15 #ifdef _ HAVE_MATLAB_15 #ifdef _SERIAL_ 16 16 #include <mex.h> 17 17 void WriteMatlabData(mxArray** pdataref,DataSet* dataset); -
issm/trunk-jpl/src/c/io/PrintfFunction.cpp
r11843 r11853 9 9 #include "../include/include.h" 10 10 11 #ifdef _ HAVE_MATLAB_11 #ifdef _SERIAL_ 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 #ifdef _ HAVE_MATLAB_55 #ifdef _SERIAL_ 56 56 mexPrintf(buffer); 57 57 #else -
issm/trunk-jpl/src/c/io/io.h
r11843 r11853 15 15 #include "./Disk/diskio.h" 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include "./Matlab/matlabio.h" 19 19 #endif -
issm/trunk-jpl/src/c/modules/Dakotax/Dakotax.cpp
r11843 r11853 51 51 #endif 52 52 53 #ifdef _ HAVE_MATLAB_53 #ifdef _SERIAL_ 54 54 void Dakotax(mxArray* femmodel){ 55 55 #else -
issm/trunk-jpl/src/c/modules/Dakotax/Dakotax.h
r11843 r11853 13 13 int DescriptorIndex(char* root, int* pindex,char* descriptor); 14 14 15 #ifdef _ HAVE_MATLAB_15 #ifdef _SERIAL_ 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
r11843 r11853 21 21 /*Branch into a serial SpawnCore and a parallel SpawnCore: */ 22 22 23 #ifdef _ HAVE_MATLAB_23 #ifdef _SERIAL_ 24 24 SpawnCoreSerial(responses, numresponses, variables, variables_descriptors,numvariables, (mxArray*)femmodel, counter); 25 25 #else -
issm/trunk-jpl/src/c/modules/Dakotax/SpawnCoreSerial.cpp
r11843 r11853 18 18 #include "../../include/include.h" 19 19 20 #ifdef _ HAVE_MATLAB_20 #ifdef _SERIAL_ 21 21 void SpawnCoreSerial(double* responses, int numresponses, double* variables, char** variables_descriptors,int numvariables, mxArray* femmodel, int counter){ 22 22 -
issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.cpp
r11843 r11853 16 16 #include "../../objects/objects.h" 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 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 _ HAVE_MATLAB_33 #ifdef _SERIAL_ 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 _ HAVE_MATLAB_45 #ifdef _SERIAL_ 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 _ HAVE_MATLAB_93 #ifdef _SERIAL_ 94 94 results->Write(pdataref); 95 95 #else -
issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.h
r11843 r11853 14 14 #include "../../Container/Container.h" 15 15 16 #ifdef _ HAVE_MATLAB_16 #ifdef _SERIAL_ 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
r11843 r11853 19 19 /*}}}*/ 20 20 /*FUNCTION BamgGeom::BamgGeom(mxArray* matlab_struct){{{1*/ 21 #ifdef _ HAVE_MATLAB_21 #ifdef _SERIAL_ 22 22 BamgGeom::BamgGeom(mxArray* matlab_struct){ 23 23 … … 51 51 /*Methods*/ 52 52 /*FUNCTION BamgGeom::SetMatlabStructureFields{{{1*/ 53 #ifdef _ HAVE_MATLAB_53 #ifdef _SERIAL_ 54 54 void BamgGeom::SetMatlabStructureFields(mxArray** matlab_struct){ 55 55 … … 94 94 /*}}}*/ 95 95 /*FUNCTION BamgGeom::SetMatlabStructureField{{{1*/ 96 #ifdef _ HAVE_MATLAB_96 #ifdef _SERIAL_ 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
r11843 r11853 5 5 #define _BAMGGEOM_H_ 6 6 7 #ifdef _ HAVE_MATLAB_7 #ifdef _SERIAL_ 8 8 #include <mex.h> 9 9 #endif … … 30 30 31 31 BamgGeom(); 32 #ifdef _ HAVE_MATLAB_32 #ifdef _SERIAL_ 33 33 BamgGeom(mxArray* matlab_struct); 34 34 #endif 35 35 ~BamgGeom(); 36 36 37 #ifdef _ HAVE_MATLAB_37 #ifdef _SERIAL_ 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
r11843 r11853 32 32 /*}}}*/ 33 33 /*FUNCTION BamgMesh::BamgMesh(mxArray* matlab_struct){{{1*/ 34 #ifdef _ HAVE_MATLAB_34 #ifdef _SERIAL_ 35 35 BamgMesh::BamgMesh(mxArray* matlab_struct){ 36 36 … … 91 91 /*Methods*/ 92 92 /*FUNCTION BamgMesh::SetMatlabStructureFields{{{1*/ 93 #ifdef _ HAVE_MATLAB_93 #ifdef _SERIAL_ 94 94 void BamgMesh::SetMatlabStructureFields(mxArray** matlab_struct){ 95 95 … … 152 152 /*}}}*/ 153 153 /*FUNCTION BamgMesh::SetMatlabStructureField{{{1*/ 154 #ifdef _ HAVE_MATLAB_154 #ifdef _SERIAL_ 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
r11843 r11853 5 5 #define _BAMGMESH_H_ 6 6 7 #ifdef _ HAVE_MATLAB_7 #ifdef _SERIAL_ 8 8 #include <mex.h> 9 9 #endif … … 51 51 52 52 BamgMesh(); 53 #ifdef _ HAVE_MATLAB_53 #ifdef _SERIAL_ 54 54 BamgMesh(mxArray* matlab_struct); 55 55 #endif 56 56 ~BamgMesh(); 57 57 58 #ifdef _ HAVE_MATLAB_58 #ifdef _SERIAL_ 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
r11843 r11853 42 42 /*}}}*/ 43 43 /*FUNCTION BamgOpts::BamgOpts(mxArray* matlab_struct){{{1*/ 44 #ifdef _ HAVE_MATLAB_44 #ifdef _SERIAL_ 45 45 BamgOpts::BamgOpts(mxArray* matlab_struct){ 46 46 -
issm/trunk-jpl/src/c/objects/Bamg/BamgOpts.h
r11843 r11853 6 6 #define _BAMGOPTS_H_ 7 7 8 #ifdef _ HAVE_MATLAB_8 #ifdef _SERIAL_ 9 9 #include <mex.h> 10 10 #endif … … 54 54 55 55 BamgOpts(); 56 #ifdef _ HAVE_MATLAB_56 #ifdef _SERIAL_ 57 57 BamgOpts(mxArray* matlab_struct); 58 58 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/BoolExternalResult.cpp
r11843 r11853 186 186 /*}}}*/ 187 187 /*FUNCTION BoolExternalResult::SetMatlabField{{{1*/ 188 #ifdef _ HAVE_MATLAB_188 #ifdef _SERIAL_ 189 189 void BoolExternalResult::SetMatlabField(mxArray* dataref){ 190 190 -
issm/trunk-jpl/src/c/objects/ExternalResults/BoolExternalResult.h
r11843 r11853 16 16 #endif 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 19 19 #include <mex.h> 20 20 #endif … … 59 59 void WriteData(FILE* fid,bool io_gather); 60 60 void GetResultName(char**); 61 #ifdef _ HAVE_MATLAB_61 #ifdef _SERIAL_ 62 62 void SetMatlabField(mxArray* dataref); 63 63 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleExternalResult.cpp
r11843 r11853 182 182 /*}}}*/ 183 183 /*FUNCTION DoubleExternalResult::SetMatlabField{{{1*/ 184 #ifdef _ HAVE_MATLAB_184 #ifdef _SERIAL_ 185 185 void DoubleExternalResult::SetMatlabField(mxArray* dataref){ 186 186 -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleExternalResult.h
r11843 r11853 16 16 #endif 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 19 19 #include <mex.h> 20 20 #endif … … 60 60 void WriteData(FILE* fid,bool io_gather); 61 61 void GetResultName(char**); 62 #ifdef _ HAVE_MATLAB_62 #ifdef _SERIAL_ 63 63 void SetMatlabField(mxArray* dataref); 64 64 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleMatExternalResult.cpp
r11843 r11853 223 223 /*}}}*/ 224 224 /*FUNCTION DoubleMatExternalResult::SetMatlabField{{{1*/ 225 #ifdef _ HAVE_MATLAB_225 #ifdef _SERIAL_ 226 226 void DoubleMatExternalResult::SetMatlabField(mxArray* dataref){ 227 227 -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleMatExternalResult.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 61 61 void WriteData(FILE* fid,bool io_gather); 62 62 void GetResultName(char**); 63 #ifdef _ HAVE_MATLAB_63 #ifdef _SERIAL_ 64 64 void SetMatlabField(mxArray* dataref); 65 65 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleVecExternalResult.cpp
r11843 r11853 207 207 /*}}}*/ 208 208 /*FUNCTION DoubleVecExternalResult::SetMatlabField{{{1*/ 209 #ifdef _ HAVE_MATLAB_209 #ifdef _SERIAL_ 210 210 void DoubleVecExternalResult::SetMatlabField(mxArray* dataref){ 211 211 -
issm/trunk-jpl/src/c/objects/ExternalResults/DoubleVecExternalResult.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 60 60 void WriteData(FILE* fid,bool io_gather); 61 61 void GetResultName(char**); 62 #ifdef _ HAVE_MATLAB_62 #ifdef _SERIAL_ 63 63 void SetMatlabField(mxArray* dataref); 64 64 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/ExternalResult.h
r11843 r11853 16 16 #endif 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 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 _ HAVE_MATLAB_35 #ifdef _SERIAL_ 36 36 virtual void SetMatlabField(mxArray* dataref)=0; 37 37 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/IntExternalResult.cpp
r11843 r11853 186 186 /*}}}*/ 187 187 /*FUNCTION IntExternalResult::SetMatlabField{{{1*/ 188 #ifdef _ HAVE_MATLAB_188 #ifdef _SERIAL_ 189 189 void IntExternalResult::SetMatlabField(mxArray* dataref){ 190 190 -
issm/trunk-jpl/src/c/objects/ExternalResults/IntExternalResult.h
r11843 r11853 16 16 #endif 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 19 19 #include <mex.h> 20 20 #endif … … 58 58 void WriteData(FILE* fid,bool io_gather); 59 59 void GetResultName(char**); 60 #ifdef _ HAVE_MATLAB_60 #ifdef _SERIAL_ 61 61 void SetMatlabField(mxArray* dataref); 62 62 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/PetscVecExternalResult.cpp
r11843 r11853 245 245 /*}}}*/ 246 246 /*FUNCTION PetscVecExternalResult::SetMatlabField{{{1*/ 247 #ifdef _ HAVE_MATLAB_247 #ifdef _SERIAL_ 248 248 void PetscVecExternalResult::SetMatlabField(mxArray* dataref){ 249 249 -
issm/trunk-jpl/src/c/objects/ExternalResults/PetscVecExternalResult.h
r11843 r11853 16 16 #endif 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 19 19 #include <mex.h> 20 20 #endif … … 60 60 void WriteData(FILE* fid,bool io_gather); 61 61 void GetResultName(char**); 62 #ifdef _ HAVE_MATLAB_62 #ifdef _SERIAL_ 63 63 void SetMatlabField(mxArray* dataref); 64 64 #endif -
issm/trunk-jpl/src/c/objects/ExternalResults/StringExternalResult.cpp
r11843 r11853 198 198 /*}}}*/ 199 199 /*FUNCTION StringExternalResult::SetMatlabField{{{1*/ 200 #ifdef _ HAVE_MATLAB_200 #ifdef _SERIAL_ 201 201 void StringExternalResult::SetMatlabField(mxArray* dataref){ 202 202 -
issm/trunk-jpl/src/c/objects/ExternalResults/StringExternalResult.h
r11843 r11853 16 16 #endif 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 19 19 #include <mex.h> 20 20 #endif … … 58 58 void WriteData(FILE* fid,bool io_gather); 59 59 void GetResultName(char**); 60 #ifdef _ HAVE_MATLAB_60 #ifdef _SERIAL_ 61 61 void SetMatlabField(mxArray* dataref); 62 62 #endif -
issm/trunk-jpl/src/c/objects/Numerics/Matrix.cpp
r11843 r11853 140 140 /*}}}*/ 141 141 142 #ifdef _ HAVE_MATLAB_142 #ifdef _SERIAL_ 143 143 /*FUNCTION Matrix::ToMatlabMatrix{{{1*/ 144 144 mxArray* Matrix::ToMatlabMatrix(void){ -
issm/trunk-jpl/src/c/objects/Numerics/Matrix.h
r11843 r11853 21 21 #endif 22 22 23 #ifdef _ HAVE_MATLAB_23 #ifdef _SERIAL_ 24 24 #include "mex.h" 25 25 #endif … … 51 51 /*Matrix specific routines {{{1*/ 52 52 void Echo(void); 53 #ifdef _ HAVE_MATLAB_53 #ifdef _SERIAL_ 54 54 mxArray* ToMatlabMatrix(void); 55 55 #endif … … 66 66 }; 67 67 /*API: */ 68 #ifdef _ HAVE_MATLAB_68 #ifdef _SERIAL_ 69 69 Matrix* MatlabMatrixToMatrix(const mxArray* mxmatrix); 70 70 #endif -
issm/trunk-jpl/src/c/objects/Numerics/Vector.cpp
r11843 r11853 133 133 /*}}}*/ 134 134 135 #ifdef _ HAVE_MATLAB_135 #ifdef _SERIAL_ 136 136 /*FUNCTION Vector::ToMatlabVector{{{1*/ 137 137 mxArray* Vector::ToMatlabVector(void){ -
issm/trunk-jpl/src/c/objects/Numerics/Vector.h
r11843 r11853 21 21 #endif 22 22 23 #ifdef _ HAVE_MATLAB_23 #ifdef _SERIAL_ 24 24 #include "mex.h" 25 25 #endif … … 54 54 /*Vector specific routines {{{1*/ 55 55 void Echo(void); 56 #ifdef _ HAVE_MATLAB_56 #ifdef _SERIAL_ 57 57 mxArray* ToMatlabVector(void); 58 58 #endif … … 78 78 79 79 /*API: */ 80 #ifdef _ HAVE_MATLAB_80 #ifdef _SERIAL_ 81 81 Vector* MatlabVectorToVector(const mxArray* mxvector); 82 82 #endif -
issm/trunk-jpl/src/c/objects/OptArgs.h
r11843 r11853 6 6 #define _OPTARGS_H_ 7 7 8 #ifdef _ HAVE_MATLAB_8 #ifdef _SERIAL_ 9 9 10 10 #include "mex.h" -
issm/trunk-jpl/src/c/objects/Params/BoolParam.cpp
r11843 r11853 135 135 /*}}}*/ 136 136 /*FUNCTION BoolParam::SetMatlabField{{{1*/ 137 #ifdef _ HAVE_MATLAB_137 #ifdef _SERIAL_ 138 138 void BoolParam::SetMatlabField(mxArray* dataref){ 139 139 char* name=NULL; -
issm/trunk-jpl/src/c/objects/Params/BoolParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 81 81 82 82 void GetParameterName(char**pname); 83 #ifdef _ HAVE_MATLAB_83 #ifdef _SERIAL_ 84 84 void SetMatlabField(mxArray* dataref); 85 85 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleMatArrayParam.cpp
r11843 r11853 309 309 /*}}}*/ 310 310 /*FUNCTION StringArrayParam::SetMatlabField{{{1*/ 311 #ifdef _ HAVE_MATLAB_311 #ifdef _SERIAL_ 312 312 void DoubleMatArrayParam::SetMatlabField(mxArray* dataref){ 313 313 -
issm/trunk-jpl/src/c/objects/Params/DoubleMatArrayParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 84 84 85 85 void GetParameterName(char**pname); 86 #ifdef _ HAVE_MATLAB_86 #ifdef _SERIAL_ 87 87 void SetMatlabField(mxArray* dataref); 88 88 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleMatParam.cpp
r11843 r11853 191 191 /*}}}*/ 192 192 /*FUNCTION DoubleMatParam::SetMatlabField{{{1*/ 193 #ifdef _ HAVE_MATLAB_193 #ifdef _SERIAL_ 194 194 void DoubleMatParam::SetMatlabField(mxArray* dataref){ 195 195 -
issm/trunk-jpl/src/c/objects/Params/DoubleMatParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 84 84 85 85 void GetParameterName(char**pname); 86 #ifdef _ HAVE_MATLAB_86 #ifdef _SERIAL_ 87 87 void SetMatlabField(mxArray* dataref); 88 88 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleParam.cpp
r11843 r11853 220 220 /*}}}*/ 221 221 /*FUNCTION DoubleParam::SetMatlabField{{{1*/ 222 #ifdef _ HAVE_MATLAB_222 #ifdef _SERIAL_ 223 223 void DoubleParam::SetMatlabField(mxArray* dataref){ 224 224 -
issm/trunk-jpl/src/c/objects/Params/DoubleParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ HAVE_MATLAB_84 #ifdef _SERIAL_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleTransientMatParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif -
issm/trunk-jpl/src/c/objects/Params/DoubleVecParam.cpp
r11843 r11853 203 203 /*}}}*/ 204 204 /*FUNCTION DoubleVecParam::SetMatlabField{{{1*/ 205 #ifdef _ HAVE_MATLAB_205 #ifdef _SERIAL_ 206 206 void DoubleVecParam::SetMatlabField(mxArray* dataref){ 207 207 -
issm/trunk-jpl/src/c/objects/Params/DoubleVecParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ HAVE_MATLAB_84 #ifdef _SERIAL_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/FileParam.cpp
r11843 r11853 102 102 /*}}}*/ 103 103 /*FUNCTION FileParam::SetMatlabField{{{1*/ 104 #ifdef _ HAVE_MATLAB_104 #ifdef _SERIAL_ 105 105 void FileParam::SetMatlabField(mxArray* dataref){ 106 106 -
issm/trunk-jpl/src/c/objects/Params/FileParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 81 81 82 82 void GetParameterName(char**pname); 83 #ifdef _ HAVE_MATLAB_83 #ifdef _SERIAL_ 84 84 void SetMatlabField(mxArray* dataref); 85 85 #endif -
issm/trunk-jpl/src/c/objects/Params/IntMatParam.cpp
r11843 r11853 173 173 /*}}}*/ 174 174 /*FUNCTION IntMatParam::SetMatlabField{{{1*/ 175 #ifdef _ HAVE_MATLAB_175 #ifdef _SERIAL_ 176 176 void IntMatParam::SetMatlabField(mxArray* dataref){ 177 177 -
issm/trunk-jpl/src/c/objects/Params/IntMatParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 83 83 84 84 void GetParameterName(char**pname); 85 #ifdef _ HAVE_MATLAB_85 #ifdef _SERIAL_ 86 86 void SetMatlabField(mxArray* dataref); 87 87 #endif -
issm/trunk-jpl/src/c/objects/Params/IntParam.cpp
r11843 r11853 135 135 /*}}}*/ 136 136 /*FUNCTION IntParam::SetMatlabField{{{1*/ 137 #ifdef _ HAVE_MATLAB_137 #ifdef _SERIAL_ 138 138 void IntParam::SetMatlabField(mxArray* dataref){ 139 139 -
issm/trunk-jpl/src/c/objects/Params/IntParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ HAVE_MATLAB_84 #ifdef _SERIAL_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/IntVecParam.cpp
r11843 r11853 186 186 /*}}}*/ 187 187 /*FUNCTION IntVecParam::SetMatlabField{{{1*/ 188 #ifdef _ HAVE_MATLAB_188 #ifdef _SERIAL_ 189 189 void IntVecParam::SetMatlabField(mxArray* dataref){ 190 190 -
issm/trunk-jpl/src/c/objects/Params/IntVecParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 83 83 84 84 void GetParameterName(char**pname); 85 #ifdef _ HAVE_MATLAB_85 #ifdef _SERIAL_ 86 86 void SetMatlabField(mxArray* dataref); 87 87 #endif -
issm/trunk-jpl/src/c/objects/Params/MatrixParam.cpp
r11843 r11853 191 191 /*}}}*/ 192 192 /*FUNCTION MatrixParam::SetMatlabField{{{1*/ 193 #ifdef _ HAVE_MATLAB_193 #ifdef _SERIAL_ 194 194 void MatrixParam::SetMatlabField(mxArray* dataref){ 195 195 -
issm/trunk-jpl/src/c/objects/Params/MatrixParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ HAVE_MATLAB_84 #ifdef _SERIAL_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/Param.h
r11843 r11853 16 16 #endif 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 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 _ HAVE_MATLAB_62 #ifdef _SERIAL_ 63 63 virtual void SetMatlabField(mxArray* dataref)=0; 64 64 #endif -
issm/trunk-jpl/src/c/objects/Params/StringArrayParam.cpp
r11843 r11853 237 237 /*}}}*/ 238 238 /*FUNCTION StringArrayParam::SetMatlabField{{{1*/ 239 #ifdef _ HAVE_MATLAB_239 #ifdef _SERIAL_ 240 240 void StringArrayParam::SetMatlabField(mxArray* dataref){ 241 241 -
issm/trunk-jpl/src/c/objects/Params/StringArrayParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 84 84 85 85 void GetParameterName(char**pname); 86 #ifdef _ HAVE_MATLAB_86 #ifdef _SERIAL_ 87 87 void SetMatlabField(mxArray* dataref); 88 88 #endif -
issm/trunk-jpl/src/c/objects/Params/StringParam.cpp
r11843 r11853 165 165 /*}}}*/ 166 166 /*FUNCTION StringParam::SetMatlabField{{{1*/ 167 #ifdef _ HAVE_MATLAB_167 #ifdef _SERIAL_ 168 168 void StringParam::SetMatlabField(mxArray* dataref){ 169 169 -
issm/trunk-jpl/src/c/objects/Params/StringParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ HAVE_MATLAB_84 #ifdef _SERIAL_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/objects/Params/VectorParam.cpp
r11843 r11853 189 189 /*}}}*/ 190 190 /*FUNCTION VectorParam::SetMatlabField{{{1*/ 191 #ifdef _ HAVE_MATLAB_191 #ifdef _SERIAL_ 192 192 void VectorParam::SetMatlabField(mxArray* dataref){ 193 193 -
issm/trunk-jpl/src/c/objects/Params/VectorParam.h
r11843 r11853 15 15 #endif 16 16 17 #ifdef _ HAVE_MATLAB_17 #ifdef _SERIAL_ 18 18 #include <mex.h> 19 19 #endif … … 82 82 83 83 void GetParameterName(char**pname); 84 #ifdef _ HAVE_MATLAB_84 #ifdef _SERIAL_ 85 85 void SetMatlabField(mxArray* dataref); 86 86 #endif -
issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp
r11843 r11853 125 125 if(!size)_error_("attempting to realloc to zero"); 126 126 127 #ifdef _ HAVE_MATLAB_127 #ifdef _SERIAL_ 128 128 value = (void*)mxRealloc(pv,size); 129 129 #else -
issm/trunk-jpl/src/c/shared/Exceptions/Exceptions.cpp
r11843 r11853 11 11 #include "../shared.h" 12 12 #include "../../include/include.h" 13 #ifdef _ HAVE_MATLAB_13 #ifdef _SERIAL_ 14 14 #include "mex.h" 15 15 #endif … … 45 45 } 46 46 else{ 47 #ifdef _ HAVE_MATLAB_47 #ifdef _SERIAL_ 48 48 mexErrMsgTxt(exprintf("\n??? Error using ==> %s at %i\n%s error message: %s\n", 49 49 file_name.c_str(),file_line,function_name.c_str(),what())); -
issm/trunk-jpl/src/c/shared/Matlab/CheckNumMatlabArguments.cpp
r11843 r11853 3 3 */ 4 4 5 #ifdef _ HAVE_MATLAB_5 #ifdef _SERIAL_ 6 6 7 7 #include "../Exceptions/exceptions.h" -
issm/trunk-jpl/src/c/shared/Matlab/matlabshared.h
r11843 r11853 14 14 #endif 15 15 16 #ifdef _ HAVE_MATLAB_16 #ifdef _SERIAL_ 17 17 #include "mex.h" 18 18 mxArray* mxGetAssignedField(const mxArray* pmxa_array,int number, const char* field); -
issm/trunk-jpl/src/c/shared/Matlab/mxGetAssignedField.cpp
r11843 r11853 9 9 10 10 11 #ifdef _ HAVE_MATLAB_11 #ifdef _SERIAL_ 12 12 13 13 #include "mex.h" -
issm/trunk-jpl/src/c/shared/Numerics/OptFunc.cpp
r11843 r11853 13 13 #include "../../include/include.h" 14 14 15 #ifdef _ HAVE_MATLAB_15 #ifdef _SERIAL_ 16 16 #include "mex.h" 17 17 double OptFunc(double scalar, OptArgs* optargs){ -
issm/trunk-jpl/src/c/shared/Numerics/Verbosity.cpp
r11843 r11853 18 18 #include "../../include/macros.h" 19 19 #include "../Exceptions/exceptions.h" 20 #ifdef _ HAVE_MATLAB_20 #ifdef _SERIAL_ 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 _ HAVE_MATLAB_41 #ifdef _SERIAL_ 42 42 43 43 mxArray* output=NULL; … … 54 54 /*FUNCTION GetVerbosityLevel {{{*/ 55 55 int GetVerbosityLevel(void){ 56 #ifdef _ HAVE_MATLAB_56 #ifdef _SERIAL_ 57 57 58 58 mxArray* output=NULL; -
issm/trunk-jpl/src/c/toolkits/double/MatlabMatrixToDoubleMatrix.cpp
r11843 r11853 11 11 12 12 13 #ifdef _ HAVE_MATLAB_13 #ifdef _SERIAL_ 14 14 15 15 /*Matlab includes: */ -
issm/trunk-jpl/src/c/toolkits/double/MatlabVectorToDoubleVector.cpp
r11843 r11853 11 11 12 12 13 #ifdef _ HAVE_MATLAB_13 #ifdef _SERIAL_ 14 14 15 15 #include <string.h> -
issm/trunk-jpl/src/c/toolkits/double/double.h
r11843 r11853 6 6 #define _DOUBLE_H_ 7 7 8 #ifdef _ HAVE_MATLAB_8 #ifdef _SERIAL_ 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
r11843 r11853 93 93 /*}}}*/ 94 94 95 #ifdef _ HAVE_MATLAB_95 #ifdef _SERIAL_ 96 96 /*FUNCTION SeqMat::ToMatlabMatrix{{{1*/ 97 97 mxArray* SeqMat::ToMatlabMatrix(void){ -
issm/trunk-jpl/src/c/toolkits/issm/SeqMat.h
r11843 r11853 16 16 #include "../toolkitsenums.h" 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 19 19 #include "mex.h" 20 20 #endif … … 40 40 /*SeqMat specific routines {{{1*/ 41 41 void Echo(void); 42 #ifdef _ HAVE_MATLAB_42 #ifdef _SERIAL_ 43 43 mxArray* ToMatlabMatrix(void); 44 44 #endif … … 56 56 57 57 /*API :*/ 58 #ifdef _ HAVE_MATLAB_58 #ifdef _SERIAL_ 59 59 SeqMat* MatlabMatrixToSeqMat(const mxArray* dataref); 60 60 #endif -
issm/trunk-jpl/src/c/toolkits/issm/SeqVec.cpp
r11843 r11853 66 66 /*}}}*/ 67 67 68 #ifdef _ HAVE_MATLAB_68 #ifdef _SERIAL_ 69 69 /*FUNCTION SeqVec::ToMatlabVector{{{1*/ 70 70 mxArray* SeqVec::ToMatlabVector(void){ -
issm/trunk-jpl/src/c/toolkits/issm/SeqVec.h
r11843 r11853 16 16 #include "../toolkitsenums.h" 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 19 19 #include "mex.h" 20 20 #endif … … 37 37 /*SeqVec specific routines {{{1*/ 38 38 void Echo(void); 39 #ifdef _ HAVE_MATLAB_39 #ifdef _SERIAL_ 40 40 mxArray* ToMatlabVector(void); 41 41 #endif … … 61 61 62 62 /*API :*/ 63 #ifdef _ HAVE_MATLAB_63 #ifdef _SERIAL_ 64 64 SeqVec* MatlabVectorToSeqVec(const mxArray* dataref); 65 65 #endif -
issm/trunk-jpl/src/c/toolkits/matlab/MatlabNArrayToNArray.cpp
r11843 r11853 13 13 #include "../../include/include.h" 14 14 15 #ifdef _ HAVE_MATLAB_15 #ifdef _SERIAL_ 16 16 #include <mex.h> 17 17 -
issm/trunk-jpl/src/c/toolkits/matlab/matlabincludes.h
r11843 r11853 6 6 #define _MATLAB_INCLUDES_H_ 7 7 8 #ifdef _ HAVE_MATLAB_8 #ifdef _SERIAL_ 9 9 #include <mex.h> 10 10 class Matrix; -
issm/trunk-jpl/src/c/toolkits/petsc/patches/MatlabMatrixToPetscMatrix.cpp
r11843 r11853 11 11 12 12 13 #ifdef _ HAVE_MATLAB_13 #ifdef _SERIAL_ 14 14 15 15 /*Petsc includes: */ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/MatlabVectorToPetscVector.cpp
r11843 r11853 11 11 12 12 13 #ifdef _ HAVE_MATLAB_13 #ifdef _SERIAL_ 14 14 15 15 /*Petsc includes: */ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscMatrixToMatlabMatrix.cpp
r11843 r11853 11 11 12 12 13 #ifdef _ HAVE_MATLAB_13 #ifdef _SERIAL_ 14 14 15 15 /*Petsc includes: */ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscVectorToMatlabVector.cpp
r11843 r11853 11 11 12 12 13 #ifdef _ HAVE_MATLAB_13 #ifdef _SERIAL_ 14 14 15 15 /*Petsc includes: */ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/petscpatches.h
r11843 r11853 16 16 class Parameters; 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 19 19 #include "mex.h" 20 20 int MatlabMatrixToPetscMatrix(Mat* matrix,int* prows,int* pcols, const mxArray* mxmatrix); -
issm/trunk-jpl/src/c/toolkits/toolkits.h
r11849 r11853 16 16 #endif 17 17 18 #ifdef _ HAVE_MATLAB_18 #ifdef _SERIAL_ 19 19 #include "./matlab/matlabincludes.h" 20 20 #endif
Note:
See TracChangeset
for help on using the changeset viewer.