Changeset 11861


Ignore:
Timestamp:
04/02/12 15:44:28 (13 years ago)
Author:
Mathieu Morlighem
Message:

reverted ifdef _SERIAL_ to ifd defined(_SERIAL_) && defined(_HAVE_MATLAB_)

Location:
issm/trunk-jpl/src/c
Files:
94 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/Container/Options.cpp

    r11853 r11861  
    2020#include "../shared/shared.h"
    2121#include "../EnumDefinitions/EnumDefinitions.h"
    22 #ifdef _SERIAL_
     22#if _SERIAL_
    2323#include "../io/io.h"
    2424#endif
     
    3131}
    3232/*}}}*/
    33 #ifdef _SERIAL_
     33#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    3434/*FUNCTION Options::Options(int istart, int nrhs, const mxArray* prhs[]){{{1*/
    3535Options::Options(int istart, int nrhs, const mxArray* prhs[]){
  • TabularUnified issm/trunk-jpl/src/c/Container/Options.h

    r11853 r11861  
    1515                /*constructors, destructors*/
    1616                Options();
    17                 #ifdef _SERIAL_
     17                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818                Options(int istart, int nrhs, const mxArray* prhs[]);
    1919                #endif
  • TabularUnified issm/trunk-jpl/src/c/Container/Results.cpp

    r11853 r11861  
    6565/*}}}*/
    6666/*FUNCTION Results::Write{{{1*/
    67 #ifdef _SERIAL_
     67#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6868void Results::Write(mxArray** pdataref){
    6969
  • TabularUnified issm/trunk-jpl/src/c/Container/Results.h

    r11853 r11861  
    2626                /*numerics: {{{1*/
    2727                Results* SpawnTriaResults(int* indices);
    28                 #ifdef _SERIAL_
     28                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    2929                void Write(mxArray** pdataref);
    3030                #else
  • TabularUnified issm/trunk-jpl/src/c/include/types.h

    r11853 r11861  
    1616
    1717/*Define abstract type for I/O: */
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include <mex.h>
    2020typedef const mxArray* ConstDataHandle;  //serially, we are reading data from a matlab array.
  • TabularUnified issm/trunk-jpl/src/c/io/Matlab/FetchMatlabData.cpp

    r11853 r11861  
    1212#include "../../include/include.h"
    1313
    14 #ifdef _SERIAL_
     14#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1515#include <mex.h>
    1616/*FUNCTION FetchMatlabData(DataSet** pdataset,const mxArray* dataref){{{1*/
  • TabularUnified issm/trunk-jpl/src/c/io/Matlab/OptionParse.cpp

    r11853 r11861  
    1313#include "./matlabio.h"
    1414
    15 #ifdef _SERIAL_
     15#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1616#include <mex.h>
    1717
  • TabularUnified issm/trunk-jpl/src/c/io/Matlab/WriteMatlabData.cpp

    r11853 r11861  
    1212#include "../../shared/shared.h"
    1313
    14 #ifdef _SERIAL_
     14#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1515#include <mex.h>
    1616
  • TabularUnified issm/trunk-jpl/src/c/io/Matlab/matlabio.h

    r11853 r11861  
    1313class Parameters;
    1414
    15 #ifdef _SERIAL_
     15#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1616#include <mex.h>
    1717void WriteMatlabData(mxArray** pdataref,DataSet* dataset);
  • TabularUnified issm/trunk-jpl/src/c/io/io.h

    r11853 r11861  
    1515#include "./Disk/diskio.h"
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include "./Matlab/matlabio.h"
    1919#endif
  • TabularUnified issm/trunk-jpl/src/c/modules/Dakotax/Dakotax.cpp

    r11853 r11861  
    5151#endif
    5252
    53 #ifdef _SERIAL_
     53#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5454void Dakotax(mxArray* femmodel){
    5555#else
     
    6969
    7070        /*Retrieve parameters: */
    71         #ifdef _SERIAL_
     71        #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    7272        FetchMatlabData((Parameters**)&parameters,mxGetField((mxArray*)femmodel,0,"parameters"));
    7373        #else
     
    8686                // Instantiate/initialize the parallel library and problem description
    8787                // database objects.
    88                 #ifdef _SERIAL_
     88                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8989                        Dakota::ParallelLibrary parallel_lib; //use Dakota's standard library mode constructor
    9090                #else
     
    143143        xfree((void**)&dakota_output_file);
    144144
    145         #ifdef _SERIAL_
     145        #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    146146        delete parameters;
    147147        #endif
  • TabularUnified issm/trunk-jpl/src/c/modules/Dakotax/Dakotax.h

    r11853 r11861  
    1313int  DescriptorIndex(char* root, int* pindex,char* descriptor);
    1414
    15 #ifdef _SERIAL_
     15#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1616void Dakotax(mxArray* femmodel);
    1717void SpawnCoreSerial(double* responses, int numresponses, double* variables, char** variables_descriptors,int numvariables, mxArray* femmodel,int counter);
  • TabularUnified issm/trunk-jpl/src/c/modules/Dakotax/SpawnCore.cpp

    r11853 r11861  
    2121        /*Branch into a serial SpawnCore and a parallel SpawnCore: */
    2222
    23         #ifdef _SERIAL_
     23        #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    2424                SpawnCoreSerial(responses, numresponses, variables, variables_descriptors,numvariables, (mxArray*)femmodel, counter);
    2525        #else
  • TabularUnified issm/trunk-jpl/src/c/modules/Dakotax/SpawnCoreSerial.cpp

    r11853 r11861  
    1818#include "../../include/include.h"
    1919
    20 #ifdef _SERIAL_
     20#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    2121void SpawnCoreSerial(double* responses, int numresponses, double* variables, char** variables_descriptors,int numvariables, mxArray* femmodel, int counter){
    2222
  • TabularUnified issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.cpp

    r11853 r11861  
    1616#include "../../objects/objects.h"
    1717               
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919void OutputResultsx(mxArray** pdataref, Elements* elements, Nodes* nodes, Vertices* vertices, Loads* loads, Materials* materials, Parameters* parameters,Results* results){
    2020#else
     
    3131        bool        dakota_analysis         = false;
    3232       
    33         #ifdef _SERIAL_
     33        #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    3434        const char **fnames      = NULL;
    3535        mwSize       onebyone[2] = {0,0};
     
    4343        if(dakota_analysis){
    4444                //no need to output anything, Dakota analysis has different outputs
    45                 #ifdef _SERIAL_
     45                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4646                *pdataref=mxCreateStructArray( ndim,onebyone,nfields,fnames);
    4747                #endif
     
    9191
    9292        /*Write results to disk (in parallel), or to memory (in serial mode): */
    93         #ifdef _SERIAL_
     93        #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    9494                results->Write(pdataref);
    9595        #else
  • TabularUnified issm/trunk-jpl/src/c/modules/OutputResultsx/OutputResultsx.h

    r11853 r11861  
    1414#include "../../Container/Container.h"
    1515
    16 #ifdef _SERIAL_
     16#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1717#include <mex.h>
    1818void OutputResultsx(mxArray** pdataref, Elements* elements, Nodes* nodes, Vertices* vertices, Loads* loads,  Materials* materials, Parameters* parameters, Results* results);
  • TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgGeom.cpp

    r11853 r11861  
    1919/*}}}*/
    2020/*FUNCTION BamgGeom::BamgGeom(mxArray* matlab_struct){{{1*/
    21 #ifdef _SERIAL_
     21#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    2222BamgGeom::BamgGeom(mxArray* matlab_struct){
    2323
     
    5151/*Methods*/
    5252/*FUNCTION BamgGeom::SetMatlabStructureFields{{{1*/
    53 #ifdef _SERIAL_
     53#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5454void BamgGeom::SetMatlabStructureFields(mxArray** matlab_struct){
    5555
     
    9494/*}}}*/
    9595/*FUNCTION BamgGeom::SetMatlabStructureField{{{1*/
    96 #ifdef _SERIAL_
     96#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    9797void BamgGeom::SetMatlabStructureField(mxArray* matlab_struct,const char* fieldname,int fieldrows,int fieldcols,double* fieldpointer){
    9898
  • TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgGeom.h

    r11853 r11861  
    55#define _BAMGGEOM_H_
    66
    7 #ifdef _SERIAL_
     7#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    88#include <mex.h>
    99#endif
     
    3030
    3131                BamgGeom();
    32                 #ifdef _SERIAL_
     32                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    3333                BamgGeom(mxArray* matlab_struct);
    3434                #endif
    3535                ~BamgGeom();
    3636
    37                 #ifdef _SERIAL_
     37                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    3838                void SetMatlabStructureFields(mxArray** matlab_struct);
    3939                void SetMatlabStructureField(mxArray* matlab_struct,const char* fieldname,int fieldrows,int fieldcols,double* fieldpointer);
  • TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgMesh.cpp

    r11853 r11861  
    3232/*}}}*/
    3333/*FUNCTION BamgMesh::BamgMesh(mxArray* matlab_struct){{{1*/
    34 #ifdef _SERIAL_
     34#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    3535BamgMesh::BamgMesh(mxArray* matlab_struct){
    3636
     
    9191/*Methods*/
    9292/*FUNCTION BamgMesh::SetMatlabStructureFields{{{1*/
    93 #ifdef _SERIAL_
     93#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    9494void BamgMesh::SetMatlabStructureFields(mxArray** matlab_struct){
    9595
     
    152152/*}}}*/
    153153/*FUNCTION BamgMesh::SetMatlabStructureField{{{1*/
    154 #ifdef _SERIAL_
     154#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    155155void BamgMesh::SetMatlabStructureField(mxArray* matlab_struct,const char* fieldname,int fieldrows,int fieldcols,double* fieldpointer){
    156156
  • TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgMesh.h

    r11853 r11861  
    55#define _BAMGMESH_H_
    66
    7 #ifdef _SERIAL_
     7#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    88#include <mex.h>
    99#endif
     
    5151
    5252                BamgMesh();
    53                 #ifdef _SERIAL_
     53                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5454                BamgMesh(mxArray* matlab_struct);
    5555                #endif
    5656                ~BamgMesh();
    5757
    58                 #ifdef _SERIAL_
     58                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5959                void SetMatlabStructureFields(mxArray** matlab_struct);
    6060                void SetMatlabStructureField(mxArray* matlab_struct,const char* fieldname,int fieldrows,int fieldcols,double* fieldpointer);
  • TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgOpts.cpp

    r11853 r11861  
    4242/*}}}*/
    4343/*FUNCTION BamgOpts::BamgOpts(mxArray* matlab_struct){{{1*/
    44 #ifdef _SERIAL_
     44#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4545BamgOpts::BamgOpts(mxArray* matlab_struct){
    4646
  • TabularUnified issm/trunk-jpl/src/c/objects/Bamg/BamgOpts.h

    r11853 r11861  
    66#define _BAMGOPTS_H_
    77
    8 #ifdef _SERIAL_
     8#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    99#include <mex.h>
    1010#endif
     
    5454
    5555                BamgOpts();
    56                 #ifdef _SERIAL_
     56                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5757                BamgOpts(mxArray* matlab_struct);
    5858                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/BoolExternalResult.cpp

    r11853 r11861  
    6868}
    6969/*}}}*/
    70 #ifdef _SERIAL_
     70#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    7171/*FUNCTION BoolExternalResult::Marshall{{{1*/
    7272void  BoolExternalResult::Marshall(char** pmarshalled_dataset){
     
    186186/*}}}*/
    187187/*FUNCTION BoolExternalResult::SetMatlabField{{{1*/
    188 #ifdef _SERIAL_
     188#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    189189void BoolExternalResult::SetMatlabField(mxArray* dataref){
    190190
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/BoolExternalResult.h

    r11853 r11861  
    1616#endif
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include <mex.h>
    2020#endif
     
    4747                int   Id();
    4848                int   MyRank();
    49                 #ifdef _SERIAL_
     49                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5050                void  Marshall(char** pmarshalled_dataset);
    5151                int   MarshallSize();
     
    5959                void  WriteData(FILE* fid,bool io_gather);
    6060                void  GetResultName(char**);
    61             #ifdef _SERIAL_
     61            #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6262                void  SetMatlabField(mxArray* dataref);
    6363                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleExternalResult.cpp

    r11853 r11861  
    6868}
    6969/*}}}*/
    70 #ifdef _SERIAL_
     70#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    7171/*FUNCTION DoubleExternalResult::Marshall{{{1*/
    7272void  DoubleExternalResult::Marshall(char** pmarshalled_dataset){
     
    182182/*}}}*/
    183183/*FUNCTION DoubleExternalResult::SetMatlabField{{{1*/
    184 #ifdef _SERIAL_
     184#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    185185void DoubleExternalResult::SetMatlabField(mxArray* dataref){
    186186
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleExternalResult.h

    r11853 r11861  
    1616#endif
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include <mex.h>
    2020#endif
     
    4848                int   Id();
    4949                int   MyRank();
    50                 #ifdef _SERIAL_
     50                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5151                void  Marshall(char** pmarshalled_dataset);
    5252                int   MarshallSize();
     
    6060                void  WriteData(FILE* fid,bool io_gather);
    6161                void  GetResultName(char**);
    62                 #ifdef _SERIAL_
     62                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6363                void  SetMatlabField(mxArray* dataref);
    6464                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleMatExternalResult.cpp

    r11853 r11861  
    9696}
    9797/*}}}*/
    98 #ifdef _SERIAL_
     98#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    9999/*FUNCTION DoubleMatExternalResult::Marshall{{{1*/
    100100void  DoubleMatExternalResult::Marshall(char** pmarshalled_dataset){
     
    223223/*}}}*/
    224224/*FUNCTION DoubleMatExternalResult::SetMatlabField{{{1*/
    225 #ifdef _SERIAL_
     225#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    226226void DoubleMatExternalResult::SetMatlabField(mxArray* dataref){
    227227
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleMatExternalResult.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4949                int   Id();
    5050                int   MyRank();
    51                 #ifdef _SERIAL_
     51                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5252                void  Marshall(char** pmarshalled_dataset);
    5353                int   MarshallSize();
     
    6161                void  WriteData(FILE* fid,bool io_gather);
    6262                void  GetResultName(char**);
    63                 #ifdef _SERIAL_
     63                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6464                void  SetMatlabField(mxArray* dataref);
    6565                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleVecExternalResult.cpp

    r11853 r11861  
    8787}
    8888/*}}}*/
    89 #ifdef _SERIAL_
     89#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    9090/*FUNCTION DoubleVecExternalResult::Marshall{{{1*/
    9191void  DoubleVecExternalResult::Marshall(char** pmarshalled_dataset){
     
    207207/*}}}*/
    208208/*FUNCTION DoubleVecExternalResult::SetMatlabField{{{1*/
    209 #ifdef _SERIAL_
     209#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    210210void DoubleVecExternalResult::SetMatlabField(mxArray* dataref){
    211211
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/DoubleVecExternalResult.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4848                int   Id();
    4949                int   MyRank();
    50                 #ifdef _SERIAL_
     50                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5151                void  Marshall(char** pmarshalled_dataset);
    5252                int   MarshallSize();
     
    6060                void  WriteData(FILE* fid,bool io_gather);
    6161                void  GetResultName(char**);
    62                 #ifdef _SERIAL_
     62                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6363                void  SetMatlabField(mxArray* dataref);
    6464                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/ExternalResult.h

    r11853 r11861  
    1616#endif
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include <mex.h>
    2020#endif
     
    3333                virtual void  WriteData(FILE* fid,bool io_gather)=0;
    3434                virtual void  GetResultName(char**)=0;
    35                 #ifdef _SERIAL_
     35                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    3636                virtual void  SetMatlabField(mxArray* dataref)=0;
    3737                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/IntExternalResult.cpp

    r11853 r11861  
    6868}
    6969/*}}}*/
    70 #ifdef _SERIAL_
     70#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    7171/*FUNCTION IntExternalResult::Marshall{{{1*/
    7272void  IntExternalResult::Marshall(char** pmarshalled_dataset){
     
    186186/*}}}*/
    187187/*FUNCTION IntExternalResult::SetMatlabField{{{1*/
    188 #ifdef _SERIAL_
     188#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    189189void IntExternalResult::SetMatlabField(mxArray* dataref){
    190190
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/IntExternalResult.h

    r11853 r11861  
    1616#endif
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include <mex.h>
    2020#endif
     
    4646                int   Id();
    4747                int   MyRank();
    48                 #ifdef _SERIAL_
     48                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4949                void  Marshall(char** pmarshalled_dataset);
    5050                int   MarshallSize();
     
    5858                void  WriteData(FILE* fid,bool io_gather);
    5959                void  GetResultName(char**);
    60                 #ifdef _SERIAL_
     60                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6161                void  SetMatlabField(mxArray* dataref);
    6262                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/PetscVecExternalResult.cpp

    r11853 r11861  
    8080}
    8181/*}}}*/
    82 #ifdef _SERIAL_
     82#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8383/*FUNCTION PetscVecExternalResult::Marshall{{{1*/
    8484void  PetscVecExternalResult::Marshall(char** pmarshalled_dataset){
     
    245245/*}}}*/
    246246/*FUNCTION PetscVecExternalResult::SetMatlabField{{{1*/
    247 #ifdef _SERIAL_
     247#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    248248void  PetscVecExternalResult::SetMatlabField(mxArray* dataref){
    249249
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/PetscVecExternalResult.h

    r11853 r11861  
    1616#endif
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include <mex.h>
    2020#endif
     
    4848                int   Id();
    4949                int   MyRank();
    50                 #ifdef _SERIAL_
     50                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5151                void  Marshall(char** pmarshalled_dataset);
    5252                int   MarshallSize();
     
    6060                void  WriteData(FILE* fid,bool io_gather);
    6161                void  GetResultName(char**);
    62                 #ifdef _SERIAL_
     62                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6363                void  SetMatlabField(mxArray* dataref);
    6464                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/StringExternalResult.cpp

    r11853 r11861  
    7171}
    7272/*}}}*/
    73 #ifdef _SERIAL_
     73#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    7474/*FUNCTION StringExternalResult::Marshall{{{1*/
    7575void  StringExternalResult::Marshall(char** pmarshalled_dataset){
     
    198198/*}}}*/
    199199/*FUNCTION StringExternalResult::SetMatlabField{{{1*/
    200 #ifdef _SERIAL_
     200#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    201201void  StringExternalResult::SetMatlabField(mxArray* dataref){
    202202       
  • TabularUnified issm/trunk-jpl/src/c/objects/ExternalResults/StringExternalResult.h

    r11853 r11861  
    1616#endif
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include <mex.h>
    2020#endif
     
    5858                void  WriteData(FILE* fid,bool io_gather);
    5959                void  GetResultName(char**);
    60                 #ifdef _SERIAL_
     60                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6161                void  SetMatlabField(mxArray* dataref);
    6262                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Numerics/Matrix.cpp

    r11853 r11861  
    140140/*}}}*/
    141141
    142 #ifdef _SERIAL_
     142#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    143143/*FUNCTION Matrix::ToMatlabMatrix{{{1*/
    144144mxArray* Matrix::ToMatlabMatrix(void){
  • TabularUnified issm/trunk-jpl/src/c/objects/Numerics/Matrix.h

    r11853 r11861  
    2121#endif
    2222
    23 #ifdef _SERIAL_
     23#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    2424#include "mex.h"
    2525#endif
     
    5151                /*Matrix specific routines {{{1*/
    5252                void Echo(void);
    53                 #ifdef _SERIAL_
     53                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5454                mxArray* ToMatlabMatrix(void);
    5555                #endif
     
    6666};
    6767/*API: */
    68 #ifdef _SERIAL_
     68#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6969Matrix* MatlabMatrixToMatrix(const mxArray* mxmatrix);
    7070#endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Numerics/Vector.cpp

    r11853 r11861  
    133133/*}}}*/
    134134
    135 #ifdef _SERIAL_
     135#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    136136/*FUNCTION Vector::ToMatlabVector{{{1*/
    137137mxArray* Vector::ToMatlabVector(void){
  • TabularUnified issm/trunk-jpl/src/c/objects/Numerics/Vector.h

    r11853 r11861  
    2121#endif
    2222               
    23 #ifdef _SERIAL_
     23#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    2424#include "mex.h"
    2525#endif
     
    5454                /*Vector specific routines {{{1*/
    5555                void Echo(void);
    56                 #ifdef _SERIAL_
     56                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5757                mxArray* ToMatlabVector(void);
    5858                #endif
     
    7878
    7979/*API: */
    80 #ifdef _SERIAL_
     80#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8181Vector* MatlabVectorToVector(const mxArray* mxvector);
    8282#endif
  • TabularUnified issm/trunk-jpl/src/c/objects/OptArgs.h

    r11853 r11861  
    66#define _OPTARGS_H_
    77
    8 #ifdef _SERIAL_
     8#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    99
    1010#include "mex.h"
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/BoolParam.cpp

    r11853 r11861  
    6262}
    6363/*}}}*/
    64 #ifdef _SERIAL_
     64#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6565/*FUNCTION BoolParam::Marshall{{{1*/
    6666void  BoolParam::Marshall(char** pmarshalled_dataset){
     
    135135/*}}}*/
    136136/*FUNCTION BoolParam::SetMatlabField{{{1*/
    137 #ifdef _SERIAL_
     137#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    138138void  BoolParam::SetMatlabField(mxArray* dataref){
    139139        char* name=NULL;
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/BoolParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4141                int   Id();
    4242                int   MyRank();
    43                 #ifdef _SERIAL_
     43                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4444                void  Marshall(char** pmarshalled_dataset);
    4545                int   MarshallSize();
     
    8181               
    8282                void GetParameterName(char**pname);
    83                 #ifdef _SERIAL_
     83                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8484                void  SetMatlabField(mxArray* dataref);
    8585                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleMatArrayParam.cpp

    r11853 r11861  
    127127}
    128128/*}}}*/
    129 #ifdef _SERIAL_
     129#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    130130/*FUNCTION DoubleMatArrayParam::Marshall{{{1*/
    131131void  DoubleMatArrayParam::Marshall(char** pmarshalled_dataset){
     
    309309/*}}}*/
    310310/*FUNCTION StringArrayParam::SetMatlabField{{{1*/
    311 #ifdef _SERIAL_
     311#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    312312void  DoubleMatArrayParam::SetMatlabField(mxArray* dataref){
    313313       
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleMatArrayParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4444                int   Id();
    4545                int   MyRank();
    46                 #ifdef _SERIAL_
     46                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4747                void  Marshall(char** pmarshalled_dataset);
    4848                int   MarshallSize();
     
    8484
    8585                void GetParameterName(char**pname);
    86                 #ifdef _SERIAL_
     86                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8787                void  SetMatlabField(mxArray* dataref);
    8888                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleMatParam.cpp

    r11853 r11861  
    7878}
    7979/*}}}*/
    80 #ifdef _SERIAL_
     80#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8181/*FUNCTION DoubleMatParam::Marshall{{{1*/
    8282void  DoubleMatParam::Marshall(char** pmarshalled_dataset){
     
    169169/*FUNCTION DoubleMatParam::GetParameterValue(int** pintarray,int* pM,int* pN){{{1*/
    170170void  DoubleMatParam::GetParameterValue(int** pintarray,int* pM,int* pN){
    171 #ifdef _SERIAL_
     171#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    172172        int* output=NULL;
    173173        int  i;
     
    191191/*}}}*/
    192192/*FUNCTION DoubleMatParam::SetMatlabField{{{1*/
    193 #ifdef _SERIAL_
     193#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    194194void  DoubleMatParam::SetMatlabField(mxArray* dataref){
    195195
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleMatParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4343                int   Id();
    4444                int   MyRank();
    45                 #ifdef _SERIAL_
     45                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4646                void  Marshall(char** pmarshalled_dataset);
    4747                int   MarshallSize();
     
    8484
    8585                void GetParameterName(char**pname);
    86                 #ifdef _SERIAL_
     86                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8787                void  SetMatlabField(mxArray* dataref);
    8888                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleParam.cpp

    r11853 r11861  
    5959}
    6060/*}}}*/
    61 #ifdef _SERIAL_
     61#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6262/*FUNCTION DoubleParam::Marshall{{{1*/
    6363void  DoubleParam::Marshall(char** pmarshalled_dataset){
     
    133133/*FUNCTION DoubleParam::GetParameterValue(int* pinteger){{{1*/
    134134void DoubleParam::GetParameterValue(int* pinteger){
    135 #ifdef _SERIAL_
     135#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    136136        *pinteger=(int)value;
    137137#else
     
    142142/*FUNCTION DoubleParam::GetParameterValue(bool* pbool){{{1*/
    143143void DoubleParam::GetParameterValue(bool* pbool){
    144 #ifdef _SERIAL_
     144#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    145145
    146146        /*If debugging mode, cheeck that the double is 0 or 1*/
     
    155155/*FUNCTION DoubleParam::GetParameterValue(int** pintarray,int* pM){{{1*/
    156156void DoubleParam::GetParameterValue(int** pintarray,int* pM){
    157 #ifdef _SERIAL_
     157#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    158158        int* output=NULL;
    159159
     
    171171/*FUNCTION DoubleParam::GetParameterValue(int** pintarray,int* pM,int* pN){{{1*/
    172172void DoubleParam::GetParameterValue(int** pintarray,int* pM,int* pN){
    173 #ifdef _SERIAL_
     173#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    174174        int* output=NULL;
    175175
     
    188188/*FUNCTION DoubleParam::GetParameterValue(double** pdoublearray,int* pM){{{1*/
    189189void DoubleParam::GetParameterValue(double** pdoublearray,int* pM){
    190 #ifdef _SERIAL_
     190#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    191191        double* output=NULL;
    192192
     
    204204/*FUNCTION DoubleParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){{{1*/
    205205void DoubleParam::GetParameterValue(double** pdoublearray,int* pM,int* pN){
    206 #ifdef _SERIAL_
     206#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    207207        double* output=NULL;
    208208
     
    220220/*}}}*/
    221221/*FUNCTION DoubleParam::SetMatlabField{{{1*/
    222 #ifdef _SERIAL_
     222#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    223223void  DoubleParam::SetMatlabField(mxArray* dataref){
    224224
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4242                int   Id();
    4343                int   MyRank();
    44                 #ifdef _SERIAL_
     44                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4545                void  Marshall(char** pmarshalled_dataset);
    4646                int   MarshallSize();
     
    8282
    8383                void GetParameterName(char**pname);
    84                 #ifdef _SERIAL_
     84                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8585                void  SetMatlabField(mxArray* dataref);
    8686                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleTransientMatParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleVecParam.cpp

    r11853 r11861  
    7575}
    7676/*}}}*/
    77 #ifdef _SERIAL_
     77#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    7878/*FUNCTION DoubleVecParam::Marshall{{{1*/
    7979void  DoubleVecParam::Marshall(char** pmarshalled_dataset){
     
    181181/*FUNCTION DoubleVecParam::GetParameterValue(int** pintarray,int* pM){{{1*/
    182182void  DoubleVecParam::GetParameterValue(int** pintarray,int* pM){
    183 #ifdef _SERIAL_
     183#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    184184        int* output=NULL;
    185185        int i;
     
    203203/*}}}*/
    204204/*FUNCTION DoubleVecParam::SetMatlabField{{{1*/
    205 #ifdef _SERIAL_
     205#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    206206void  DoubleVecParam::SetMatlabField(mxArray* dataref){
    207207
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/DoubleVecParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4242                int   Id();
    4343                int   MyRank();
    44                 #ifdef _SERIAL_
     44                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4545                void  Marshall(char** pmarshalled_dataset);
    4646                int   MarshallSize();
     
    8282               
    8383                void GetParameterName(char**pname);
    84                 #ifdef _SERIAL_
     84                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8585                void  SetMatlabField(mxArray* dataref);
    8686                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/FileParam.cpp

    r11853 r11861  
    6262}
    6363/*}}}*/
    64 #ifdef _SERIAL_
     64#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6565/*FUNCTION FileParam::Marshall{{{1*/
    6666void  FileParam::Marshall(char** pmarshalled_dataset){
     
    102102/*}}}*/
    103103/*FUNCTION FileParam::SetMatlabField{{{1*/
    104 #ifdef _SERIAL_
     104#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    105105void  FileParam::SetMatlabField(mxArray* dataref){
    106106       
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/FileParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4141                int   Id();
    4242                int   MyRank();
    43                 #ifdef _SERIAL_
     43                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4444                void  Marshall(char** pmarshalled_dataset);
    4545                int   MarshallSize();
     
    8181
    8282                void GetParameterName(char**pname);
    83                 #ifdef _SERIAL_
     83                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8484                void  SetMatlabField(mxArray* dataref);
    8585                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/IntMatParam.cpp

    r11853 r11861  
    7878}
    7979/*}}}*/
    80 #ifdef _SERIAL_
     80#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8181/*FUNCTION IntMatParam::Marshall{{{1*/
    8282void  IntMatParam::Marshall(char** pmarshalled_dataset){
     
    173173/*}}}*/
    174174/*FUNCTION IntMatParam::SetMatlabField{{{1*/
    175 #ifdef _SERIAL_
     175#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    176176void  IntMatParam::SetMatlabField(mxArray* dataref){
    177177
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/IntMatParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4343                int   Id();
    4444                int   MyRank();
    45                 #ifdef _SERIAL_
     45                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4646                void  Marshall(char** pmarshalled_dataset);
    4747                int   MarshallSize();
     
    8383
    8484                void GetParameterName(char**pname);
    85                 #ifdef _SERIAL_
     85                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8686                void  SetMatlabField(mxArray* dataref);
    8787                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/IntParam.cpp

    r11853 r11861  
    6262}
    6363/*}}}*/
    64 #ifdef _SERIAL_
     64#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6565/*FUNCTION IntParam::Marshall{{{1*/
    6666void  IntParam::Marshall(char** pmarshalled_dataset){
     
    135135/*}}}*/
    136136/*FUNCTION IntParam::SetMatlabField{{{1*/
    137 #ifdef _SERIAL_
     137#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    138138void  IntParam::SetMatlabField(mxArray* dataref){
    139139       
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/IntParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4242                int   Id();
    4343                int   MyRank();
    44                 #ifdef _SERIAL_
     44                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4545                void  Marshall(char** pmarshalled_dataset);
    4646                int   MarshallSize();
     
    8282
    8383                void GetParameterName(char**pname);
    84                 #ifdef _SERIAL_
     84                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8585                void  SetMatlabField(mxArray* dataref);
    8686                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/IntVecParam.cpp

    r11853 r11861  
    9191}
    9292/*}}}*/
    93 #ifdef _SERIAL_
     93#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    9494/*FUNCTION IntVecParam::Marshall{{{1*/
    9595void  IntVecParam::Marshall(char** pmarshalled_dataset){
     
    186186/*}}}*/
    187187/*FUNCTION IntVecParam::SetMatlabField{{{1*/
    188 #ifdef _SERIAL_
     188#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    189189void  IntVecParam::SetMatlabField(mxArray* dataref){
    190190
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/IntVecParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4343                int   Id();
    4444                int   MyRank();
    45                 #ifdef _SERIAL_
     45                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4646                void  Marshall(char** pmarshalled_dataset);
    4747                int   MarshallSize();
     
    8383               
    8484                void GetParameterName(char**pname);
    85                 #ifdef _SERIAL_
     85                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8686                void  SetMatlabField(mxArray* dataref);
    8787                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/MatrixParam.cpp

    r11853 r11861  
    7070}
    7171/*}}}*/
    72 #ifdef _SERIAL_
     72#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    7373/*FUNCTION MatrixParam::Marshall{{{1*/
    7474void  MatrixParam::Marshall(char** pmarshalled_dataset){
     
    191191/*}}}*/
    192192/*FUNCTION MatrixParam::SetMatlabField{{{1*/
    193 #ifdef _SERIAL_
     193#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    194194void  MatrixParam::SetMatlabField(mxArray* dataref){
    195195       
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/MatrixParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4242                int   Id();
    4343                int   MyRank();
    44                 #ifdef _SERIAL_
     44                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4545                void  Marshall(char** pmarshalled_dataset);
    4646                int   MarshallSize();
     
    8282
    8383                void GetParameterName(char**pname);
    84                 #ifdef _SERIAL_
     84                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8585                void  SetMatlabField(mxArray* dataref);
    8686                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/Param.h

    r11853 r11861  
    1616#endif
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include <mex.h>
    2020#endif
     
    6060                virtual void  UnitConversion(int direction_enum)=0;
    6161                virtual void  GetParameterName(char**pname)=0;
    62                 #ifdef _SERIAL_
     62                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6363                virtual void  SetMatlabField(mxArray* dataref)=0;
    6464                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/StringArrayParam.cpp

    r11853 r11861  
    9292}
    9393/*}}}*/
    94 #ifdef _SERIAL_
     94#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    9595/*FUNCTION StringArrayParam::Marshall{{{1*/
    9696void  StringArrayParam::Marshall(char** pmarshalled_dataset){
     
    237237/*}}}*/
    238238/*FUNCTION StringArrayParam::SetMatlabField{{{1*/
    239 #ifdef _SERIAL_
     239#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    240240void  StringArrayParam::SetMatlabField(mxArray* dataref){
    241241       
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/StringArrayParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4444                int   Id();
    4545                int   MyRank();
    46                 #ifdef _SERIAL_
     46                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4747                void  Marshall(char** pmarshalled_dataset);
    4848                int   MarshallSize();
     
    8484
    8585                void GetParameterName(char**pname);
    86                 #ifdef _SERIAL_
     86                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8787                void  SetMatlabField(mxArray* dataref);
    8888                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/StringParam.cpp

    r11853 r11861  
    6464}
    6565/*}}}*/
    66 #ifdef _SERIAL_
     66#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6767/*FUNCTION StringParam::Marshall{{{1*/
    6868void  StringParam::Marshall(char** pmarshalled_dataset){
     
    165165/*}}}*/
    166166/*FUNCTION StringParam::SetMatlabField{{{1*/
    167 #ifdef _SERIAL_
     167#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    168168void  StringParam::SetMatlabField(mxArray* dataref){
    169169       
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/StringParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4242                int   Id();
    4343                int   MyRank();
    44                 #ifdef _SERIAL_
     44                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4545                void  Marshall(char** pmarshalled_dataset);
    4646                int   MarshallSize();
     
    8282
    8383                void GetParameterName(char**pname);
    84                 #ifdef _SERIAL_
     84                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8585                void  SetMatlabField(mxArray* dataref);
    8686                #endif
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/VectorParam.cpp

    r11853 r11861  
    7272}
    7373/*}}}*/
    74 #ifdef _SERIAL_
     74#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    7575/*FUNCTION VectorParam::Marshall{{{1*/
    7676void  VectorParam::Marshall(char** pmarshalled_dataset){
     
    189189/*}}}*/
    190190/*FUNCTION VectorParam::SetMatlabField{{{1*/
    191 #ifdef _SERIAL_
     191#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    192192void  VectorParam::SetMatlabField(mxArray* dataref){
    193193
  • TabularUnified issm/trunk-jpl/src/c/objects/Params/VectorParam.h

    r11853 r11861  
    1515#endif
    1616
    17 #ifdef _SERIAL_
     17#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1818#include <mex.h>
    1919#endif
     
    4242                int   Id();
    4343                int   MyRank();
    44                 #ifdef _SERIAL_
     44                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4545                void  Marshall(char** pmarshalled_dataset);
    4646                int   MarshallSize();
     
    8282
    8383                void GetParameterName(char**pname);
    84                 #ifdef _SERIAL_
     84                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    8585                void  SetMatlabField(mxArray* dataref);
    8686                #endif
  • TabularUnified issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp

    r11853 r11861  
    125125        if(!size)_error_("attempting to realloc to zero");
    126126
    127         #ifdef _SERIAL_
     127        #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    128128        value = (void*)mxRealloc(pv,size);
    129129        #else
  • TabularUnified issm/trunk-jpl/src/c/shared/Exceptions/Exceptions.cpp

    r11853 r11861  
    1111#include "../shared.h"
    1212#include "../../include/include.h"
    13 #ifdef _SERIAL_
     13#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1414#include "mex.h"
    1515#endif
     
    4545        }
    4646        else{
    47                 #ifdef _SERIAL_
     47                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4848                        mexErrMsgTxt(exprintf("\n??? Error using ==> %s at %i\n%s error message: %s\n",
    4949                                                        file_name.c_str(),file_line,function_name.c_str(),what()));
  • TabularUnified issm/trunk-jpl/src/c/shared/Matlab/PrintfFunction.cpp

    r9324 r11861  
    99#include "../../include/include.h"
    1010
    11 #ifdef _SERIAL_
     11#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1212#include "mex.h"
    1313#endif
  • TabularUnified issm/trunk-jpl/src/c/shared/Matlab/matlabshared.h

    r11853 r11861  
    99
    1010
    11 #ifdef _SERIAL_
     11#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1212int ModuleBoot(void);
    1313int ModuleEnd(void);
    1414#endif
    1515
    16 #ifdef _SERIAL_
     16#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1717#include "mex.h"
    1818mxArray* mxGetAssignedField(const mxArray* pmxa_array,int number, const char* field);
  • TabularUnified issm/trunk-jpl/src/c/shared/Matlab/mxGetAssignedField.cpp

    r11853 r11861  
    99
    1010
    11 #ifdef _SERIAL_
     11#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1212
    1313#include "mex.h"
  • TabularUnified issm/trunk-jpl/src/c/shared/Numerics/OptFunc.cpp

    r11853 r11861  
    1313#include "../../include/include.h"
    1414
    15 #ifdef _SERIAL_
     15#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1616#include "mex.h"
    1717double OptFunc(double scalar, OptArgs* optargs){
  • TabularUnified issm/trunk-jpl/src/c/shared/Numerics/OptionsFromAnalysis.cpp

    r11702 r11861  
    3030        parameters->FindParam(&strings,&numanalyses,PetscOptionsStringsEnum);
    3131
    32         #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
     32        #if defined(_HAVE_MATLAB_) && defined(_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
    3333        if(numanalyses==1){ analyses=(double*)xmalloc(1*sizeof(double)); parameters->FindParam(analyses,PetscOptionsAnalysesEnum);
    3434        }
  • TabularUnified issm/trunk-jpl/src/c/shared/Numerics/Verbosity.cpp

    r11853 r11861  
    1818#include "../../include/macros.h"
    1919#include "../Exceptions/exceptions.h"
    20 #ifdef _SERIAL_
     20#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    2121#include <mex.h>
    2222#endif
     
    3939        if(level<0) _error_("vebosity level should be a positive integer (user provided %i)",level);
    4040
    41 #ifdef _SERIAL_
     41#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4242
    4343        mxArray* output=NULL;
     
    5454/*FUNCTION GetVerbosityLevel {{{*/
    5555int  GetVerbosityLevel(void){
    56 #ifdef _SERIAL_
     56#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5757
    5858        mxArray* output=NULL;
  • TabularUnified issm/trunk-jpl/src/c/toolkits/double/MatlabMatrixToDoubleMatrix.cpp

    r11853 r11861  
    1111
    1212
    13 #ifdef _SERIAL_
     13#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1414
    1515/*Matlab includes: */
  • TabularUnified issm/trunk-jpl/src/c/toolkits/double/MatlabVectorToDoubleVector.cpp

    r11853 r11861  
    1111
    1212
    13 #ifdef _SERIAL_
     13#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1414
    1515#include <string.h>
  • TabularUnified issm/trunk-jpl/src/c/toolkits/double/double.h

    r11853 r11861  
    66#define _DOUBLE_H_
    77
    8 #ifdef _SERIAL_
     8#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    99#include "mex.h"
    1010int MatlabMatrixToDoubleMatrix(double** pmatrix,int* pmatrix_rows,int* pmatrix_cols,const mxArray* mxmatrix);
  • TabularUnified issm/trunk-jpl/src/c/toolkits/issm/SeqMat.cpp

    r11853 r11861  
    9393/*}}}*/
    9494
    95 #ifdef _SERIAL_
     95#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    9696/*FUNCTION SeqMat::ToMatlabMatrix{{{1*/
    9797mxArray* SeqMat::ToMatlabMatrix(void){
  • TabularUnified issm/trunk-jpl/src/c/toolkits/issm/SeqMat.h

    r11853 r11861  
    1616#include "../toolkitsenums.h"
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include "mex.h"
    2020#endif
     
    4040                /*SeqMat specific routines {{{1*/
    4141                void Echo(void);
    42                 #ifdef _SERIAL_
     42                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4343                mxArray* ToMatlabMatrix(void);
    4444                #endif
     
    5656               
    5757/*API :*/
    58 #ifdef _SERIAL_
     58#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5959SeqMat*  MatlabMatrixToSeqMat(const mxArray* dataref);
    6060#endif
  • TabularUnified issm/trunk-jpl/src/c/toolkits/issm/SeqVec.cpp

    r11855 r11861  
    6666/*}}}*/
    6767
    68 #ifdef _SERIAL_
     68#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6969/*FUNCTION SeqVec::ToMatlabVector{{{1*/
    7070mxArray* SeqVec::ToMatlabVector(void){
  • TabularUnified issm/trunk-jpl/src/c/toolkits/issm/SeqVec.h

    r11853 r11861  
    1616#include "../toolkitsenums.h"
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include "mex.h"
    2020#endif
     
    3737                /*SeqVec specific routines {{{1*/
    3838                void Echo(void);
    39                 #ifdef _SERIAL_
     39                #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    4040                mxArray* ToMatlabVector(void);
    4141                #endif
     
    6161
    6262/*API :*/
    63 #ifdef _SERIAL_
     63#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    6464SeqVec*  MatlabVectorToSeqVec(const mxArray* dataref);
    6565#endif
  • TabularUnified issm/trunk-jpl/src/c/toolkits/matlab/MatlabNArrayToNArray.cpp

    r11853 r11861  
    1313#include "../../include/include.h"
    1414
    15 #ifdef _SERIAL_
     15#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1616#include <mex.h>
    1717
  • TabularUnified issm/trunk-jpl/src/c/toolkits/matlab/matlabincludes.h

    r11853 r11861  
    66#define _MATLAB_INCLUDES_H_
    77
    8 #ifdef _SERIAL_
     8#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    99#include <mex.h>
    1010class Matrix;
  • TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/patches/MatInvert.cpp

    r9826 r11861  
    5656        MatAssemblyEnd(inv,MAT_FINAL_ASSEMBLY);
    5757
    58         #ifdef _SERIAL_
     58        #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    5959                MatConvert(inv, MATSEQAIJ,MAT_REUSE_MATRIX,&inv);
    6060        #else
  • TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/patches/MatlabMatrixToPetscMatrix.cpp

    r11853 r11861  
    1111
    1212
    13 #ifdef _SERIAL_
     13#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1414
    1515/*Petsc includes: */
  • TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/patches/MatlabVectorToPetscVector.cpp

    r11853 r11861  
    1111
    1212
    13 #ifdef _SERIAL_
     13#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1414
    1515/*Petsc includes: */
  • TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscMatrixToMatlabMatrix.cpp

    r11853 r11861  
    1111
    1212
    13 #ifdef _SERIAL_
     13#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1414
    1515/*Petsc includes: */
  • TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscVectorToMatlabVector.cpp

    r11853 r11861  
    1111
    1212
    13 #ifdef _SERIAL_
     13#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1414
    1515/*Petsc includes: */
     
    6464}
    6565
    66 #endif  //#ifdef _SERIAL_
     66#endif  //#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
  • TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/patches/petscpatches.h

    r11853 r11861  
    1616class Parameters;
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include "mex.h"
    2020int MatlabMatrixToPetscMatrix(Mat* matrix,int* prows,int* pcols, const mxArray* mxmatrix);
  • TabularUnified issm/trunk-jpl/src/c/toolkits/toolkits.h

    r11853 r11861  
    1616#endif
    1717
    18 #ifdef _SERIAL_
     18#if defined(_HAVE_MATLAB_) && defined(_SERIAL_)
    1919#include "./matlab/matlabincludes.h"
    2020#endif
    2121
    22 #ifdef _HAVE_PYTHON_
     22#if defined(_HAVE_PYTHON_) && defined(_SERIAL_)
    2323#include "./python/pythonincludes.h"
    2424#endif
Note: See TracChangeset for help on using the changeset viewer.