source: issm/oecreview/Archive/14312-15392/ISSM-14956-14957.diff@ 15393

Last change on this file since 15393 was 15393, checked in by Mathieu Morlighem, 12 years ago

NEW: adding Archive/14312-15392 for oecreview

File size: 3.7 KB
  • TabularUnified ../trunk-jpl/src/c/Container/Parameters.h

     
    1111class Vertices;
    1212class Loads;
    1313class Nodes;
    14 class DataSet;
    1514class Inputs;
     15#include "./DataSet.h"
    1616#include "../shared/Numerics/types.h"
    1717
    1818/*!\brief Declaration of Parameters class. 
  • TabularUnified ../trunk-jpl/src/c/Container/DataSet.cpp

     
    285285
    286286        return 1;
    287287}/*}}}*/
    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

     
    22#define _CONTAINER_DATASET_H_
    33
    44#include <vector>
     5#include <cstring>
     6#include "../classes/objects/Contour.h"
    57
    68/*forward declarations */
    79class Object;
     
    6163
    6264/*Methods that relate to datasets: */
    6365int ExpWrite(DataSet* contours,char* domainname);
    64 template <class doubletype> DataSet* ExpRead(char* domainname);
     66template <class doubletype> DataSet* ExpRead(char* domainname){ /*{{{*/
    6567
     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
    6694#endif
  • TabularUnified ../trunk-jpl/src/c/toolkits/mpi/mpiincludes.h

     
    55#ifndef _MPI_INCLUDES_H_
    66#define _MPI_INCLUDES_H_
    77
     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
    816/*MPI includes: */
    917#include <mpi.h>
    1018
    1119/*Patches: */
    1220#include "./patches/mpipatches.h"
     21#endif
    1322
    1423#endif
  • TabularUnified ../trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp

     
    99#endif
    1010
    1111#include "./matlabio.h"
     12#include "../../c/Container/Container.h"
    1213#include "../../c/shared/shared.h"
    1314
    1415/*Primitive data types*/
Note: See TracBrowser for help on using the repository browser.