Index: ../trunk-jpl/src/c/Container/Parameters.h =================================================================== --- ../trunk-jpl/src/c/Container/Parameters.h (revision 14956) +++ ../trunk-jpl/src/c/Container/Parameters.h (revision 14957) @@ -11,8 +11,8 @@ class Vertices; class Loads; class Nodes; -class DataSet; class Inputs; +#include "./DataSet.h" #include "../shared/Numerics/types.h" /*!\brief Declaration of Parameters class. Index: ../trunk-jpl/src/c/Container/DataSet.cpp =================================================================== --- ../trunk-jpl/src/c/Container/DataSet.cpp (revision 14956) +++ ../trunk-jpl/src/c/Container/DataSet.cpp (revision 14957) @@ -285,30 +285,3 @@ return 1; }/*}}}*/ -template DataSet* ExpRead(char* domainname){ /*{{{*/ - - /*intermediary: */ - int nprof; - int *profnvertices = NULL; - doubletype **pprofx = NULL; - doubletype **pprofy = NULL; - - /*output: */ - DataSet *domain = NULL; - - /*If domainname is an empty string, return empty dataset*/ - if (strcmp(domainname,"")==0){ - nprof=0; - } - else{ - ExpRead(&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname); - } - - /*now create dataset of contours: */ - domain=new DataSet(0); - - for(int i=0;iAddObject(new Contour(i,profnvertices[i],pprofx[i],pprofy[i],1)); - } - return domain; -} /*}}}*/ Index: ../trunk-jpl/src/c/Container/DataSet.h =================================================================== --- ../trunk-jpl/src/c/Container/DataSet.h (revision 14956) +++ ../trunk-jpl/src/c/Container/DataSet.h (revision 14957) @@ -2,6 +2,8 @@ #define _CONTAINER_DATASET_H_ #include +#include +#include "../classes/objects/Contour.h" /*forward declarations */ class Object; @@ -61,6 +63,32 @@ /*Methods that relate to datasets: */ int ExpWrite(DataSet* contours,char* domainname); -template DataSet* ExpRead(char* domainname); +template DataSet* ExpRead(char* domainname){ /*{{{*/ + /*intermediary: */ + int nprof; + int *profnvertices = NULL; + doubletype **pprofx = NULL; + doubletype **pprofy = NULL; + + /*output: */ + DataSet *domain = NULL; + + /*If domainname is an empty string, return empty dataset*/ + if (strcmp(domainname,"")==0){ + nprof=0; + } + else{ + ExpRead(&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname); + } + + /*now create dataset of contours: */ + domain=new DataSet(0); + + for(int i=0;iAddObject(new Contour(i,profnvertices[i],pprofx[i],pprofy[i],1)); + } + return domain; +} /*}}}*/ + #endif Index: ../trunk-jpl/src/c/toolkits/mpi/mpiincludes.h =================================================================== --- ../trunk-jpl/src/c/toolkits/mpi/mpiincludes.h (revision 14956) +++ ../trunk-jpl/src/c/toolkits/mpi/mpiincludes.h (revision 14957) @@ -5,10 +5,19 @@ #ifndef _MPI_INCLUDES_H_ #define _MPI_INCLUDES_H_ +#ifdef HAVE_CONFIG_H + #include +#else +#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!" +#endif + +#ifdef _HAVE_MPI_ + /*MPI includes: */ #include /*Patches: */ #include "./patches/mpipatches.h" +#endif #endif Index: ../trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp =================================================================== --- ../trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp (revision 14956) +++ ../trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp (revision 14957) @@ -9,6 +9,7 @@ #endif #include "./matlabio.h" +#include "../../c/Container/Container.h" #include "../../c/shared/shared.h" /*Primitive data types*/