Changeset 14957
- Timestamp:
- 05/08/13 09:48:54 (12 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Container/DataSet.cpp
r14953 r14957 286 286 return 1; 287 287 }/*}}}*/ 288 template <class doubletype> DataSet* ExpRead(char* domainname){ /*{{{*/289 290 /*intermediary: */291 int nprof;292 int *profnvertices = NULL;293 doubletype **pprofx = NULL;294 doubletype **pprofy = NULL;295 296 /*output: */297 DataSet *domain = NULL;298 299 /*If domainname is an empty string, return empty dataset*/300 if (strcmp(domainname,"")==0){301 nprof=0;302 }303 else{304 ExpRead(&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname);305 }306 307 /*now create dataset of contours: */308 domain=new DataSet(0);309 310 for(int i=0;i<nprof;i++){311 domain->AddObject(new Contour<doubletype>(i,profnvertices[i],pprofx[i],pprofy[i],1));312 }313 return domain;314 } /*}}}*/ -
issm/trunk-jpl/src/c/Container/DataSet.h
r14953 r14957 3 3 4 4 #include <vector> 5 #include <cstring> 6 #include "../classes/objects/Contour.h" 5 7 6 8 /*forward declarations */ … … 62 64 /*Methods that relate to datasets: */ 63 65 int ExpWrite(DataSet* contours,char* domainname); 64 template <class doubletype> DataSet* ExpRead(char* domainname); 66 template <class doubletype> DataSet* ExpRead(char* domainname){ /*{{{*/ 67 68 /*intermediary: */ 69 int nprof; 70 int *profnvertices = NULL; 71 doubletype **pprofx = NULL; 72 doubletype **pprofy = NULL; 73 74 /*output: */ 75 DataSet *domain = NULL; 76 77 /*If domainname is an empty string, return empty dataset*/ 78 if (strcmp(domainname,"")==0){ 79 nprof=0; 80 } 81 else{ 82 ExpRead(&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname); 83 } 84 85 /*now create dataset of contours: */ 86 domain=new DataSet(0); 87 88 for(int i=0;i<nprof;i++){ 89 domain->AddObject(new Contour<doubletype>(i,profnvertices[i],pprofx[i],pprofy[i],1)); 90 } 91 return domain; 92 } /*}}}*/ 65 93 66 94 #endif -
issm/trunk-jpl/src/c/Container/Parameters.h
r14953 r14957 12 12 class Loads; 13 13 class Nodes; 14 class DataSet;15 14 class Inputs; 15 #include "./DataSet.h" 16 16 #include "../shared/Numerics/types.h" 17 17 -
issm/trunk-jpl/src/c/toolkits/mpi/mpiincludes.h
r14912 r14957 6 6 #define _MPI_INCLUDES_H_ 7 7 8 #ifdef HAVE_CONFIG_H 9 #include <config.h> 10 #else 11 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!" 12 #endif 13 14 #ifdef _HAVE_MPI_ 15 8 16 /*MPI includes: */ 9 17 #include <mpi.h> … … 11 19 /*Patches: */ 12 20 #include "./patches/mpipatches.h" 21 #endif 13 22 14 23 #endif -
issm/trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp
r14377 r14957 10 10 11 11 #include "./matlabio.h" 12 #include "../../c/Container/Container.h" 12 13 #include "../../c/shared/shared.h" 13 14
Note:
See TracChangeset
for help on using the changeset viewer.