source:
issm/oecreview/Archive/14312-15392/ISSM-14956-14957.diff@
15393
Last change on this file since 15393 was 15393, checked in by , 12 years ago | |
---|---|
File size: 3.7 KB |
-
TabularUnified ../trunk-jpl/src/c/Container/Parameters.h
11 11 class Vertices; 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 18 18 /*!\brief Declaration of Parameters class. -
TabularUnified ../trunk-jpl/src/c/Container/DataSet.cpp
285 285 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 } /*}}}*/ -
TabularUnified ../trunk-jpl/src/c/Container/DataSet.h
2 2 #define _CONTAINER_DATASET_H_ 3 3 4 4 #include <vector> 5 #include <cstring> 6 #include "../classes/objects/Contour.h" 5 7 6 8 /*forward declarations */ 7 9 class Object; … … 61 63 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){ /*{{{*/ 65 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 } /*}}}*/ 93 66 94 #endif -
TabularUnified ../trunk-jpl/src/c/toolkits/mpi/mpiincludes.h
5 5 #ifndef _MPI_INCLUDES_H_ 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> 10 18 11 19 /*Patches: */ 12 20 #include "./patches/mpipatches.h" 21 #endif 13 22 14 23 #endif -
TabularUnified ../trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp
9 9 #endif 10 10 11 11 #include "./matlabio.h" 12 #include "../../c/Container/Container.h" 12 13 #include "../../c/shared/shared.h" 13 14 14 15 /*Primitive data types*/
Note:
See TracBrowser
for help on using the repository browser.