Changeset 12322


Ignore:
Timestamp:
06/01/12 16:04:40 (13 years ago)
Author:
utke
Message:

using typedef'ed name

Location:
issm/trunk-jpl/src/c/objects
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/objects/Contour.h

    r12014 r12322  
    2020                int     id;
    2121                int       nods;  //number of vertices in the contour
    22                 double* x;
    23                 double* y;
     22                IssmDouble* x;
     23                IssmDouble* y;
    2424                bool    closed; //is this contour closed?
    2525
    2626                /*Contour constructors, destructors {{{1*/
    2727                Contour();
    28                 Contour(int id, int nods, double* x, double* y,bool closed);
     28                Contour(int id, int nods, IssmDouble* x, IssmDouble* y,bool closed);
    2929                ~Contour();
    3030                /*}}}*/
  • issm/trunk-jpl/src/c/objects/DofIndexing.h

    r12014 r12322  
    55#ifndef _DOFINDEXING_H_
    66#define  _DOFINDEXING_H_
     7
     8#include "../include/include.h"
    79
    810class DofIndexing{
     
    2123                bool*     f_set; //is dof on f-set (on which we solve)
    2224                bool*     s_set; //is dof on s-set (on which boundary conditions -dirichlet- are applied)
    23                 double*   svalues; //list of constraint values. size g_size, for ease of use.
     25                IssmDouble*   svalues; //list of constraint values. size g_size, for ease of use.
    2426
    2527                /*types of dofs: */
  • issm/trunk-jpl/src/c/objects/IoModel.h

    r12265 r12322  
    1919        private:
    2020                FILE        *fid;         //pointer to input file
    21                 double     **data;        //this dataset holds temporary data, memory intensive.
    22                 Parameters  *constants;   //this dataset holds all double, int, bool and char *parameters read in from the input file.*
     21                IssmDouble     **data;        //this dataset holds temporary data, memory intensive.
     22                Parameters  *constants;   //this dataset holds all IssmDouble, int, bool and char *parameters read in from the input file.*
    2323
    2424        public:
     
    4444                void    Constant(bool   *poutput,int constant_enum);
    4545                void    Constant(int    *poutput,int constant_enum);
    46                 void    Constant(double *poutput,int constant_enum);
     46                void    Constant(IssmDouble *poutput,int constant_enum);
    4747                void    Constant(char  **poutput,int constant_enum);
    4848                Param  *CopyConstantObject(int constant_enum);
    49                 double *Data(int dataenum);
     49                IssmDouble *Data(int dataenum);
    5050                void    DeleteData(int num,...);
    5151                void    FetchConstants(void);
    5252                void    FetchData(bool*     pboolean,int data_enum);
    5353                void    FetchData(int*      pinteger,int data_enum);
    54                 void    FetchData(double*   pscalar,int data_enum);
     54                void    FetchData(IssmDouble*   pscalar,int data_enum);
    5555                void    FetchData(char**    pstring,int data_enum);
    5656                void    FetchData(int** pmatrix,int* pM,int* pN,int data_enum);
    57                 void    FetchData(double**  pscalarmatrix,int* pM,int* pN,int data_enum);
     57                void    FetchData(IssmDouble**  pscalarmatrix,int* pM,int* pN,int data_enum);
    5858                void    FetchData(char***   pstringarray,int* pnumstrings,int data_enum);
    59                 void    FetchData(double*** pmatrixarray,int** pmdims,int** pndims, int* pnumrecords,int data_enum);
     59                void    FetchData(IssmDouble*** pmatrixarray,int** pmdims,int** pndims, int* pnumrecords,int data_enum);
    6060                void    FetchData(int num,...);
    61                 void    FetchDataToInput(Elements* elements,int vector_enum,int default_vector_enum=NoneEnum,double default_value=0);
     61                void    FetchDataToInput(Elements* elements,int vector_enum,int default_vector_enum=NoneEnum,IssmDouble default_value=0);
    6262                FILE*   SetFilePointerToData(int* pcode,int* pvector_type, int data_enum);
    6363};
  • issm/trunk-jpl/src/c/objects/Node.h

    r12014 r12322  
    3232                Inputs*        inputs; //properties of this node
    3333                int            analysis_type;
    34                 double         coord_system[3][3];
     34                IssmDouble         coord_system[3][3];
    3535
    3636                /*Node constructors, destructors {{{1*/
     
    4949                /*Update virtual functions definitions: {{{1*/
    5050               
    51                 void  InputUpdateFromVector(double* vector, int name, int type);
     51                void  InputUpdateFromVector(IssmDouble* vector, int name, int type);
    5252                void  InputUpdateFromVector(int* vector, int name, int type);
    5353                void  InputUpdateFromVector(bool* vector, int name, int type);
    54                 void  InputUpdateFromMatrixDakota(double* matrix,int nrows, int ncols, int name, int type);
    55                 void  InputUpdateFromVectorDakota(double* vector, int name, int type);
     54                void  InputUpdateFromMatrixDakota(IssmDouble* matrix,int nrows, int ncols, int name, int type);
     55                void  InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type);
    5656                void  InputUpdateFromVectorDakota(int* vector, int name, int type);
    5757                void  InputUpdateFromVectorDakota(bool* vector, int name, int type);
    58                 void  InputUpdateFromConstant(double constant, int name);
     58                void  InputUpdateFromConstant(IssmDouble constant, int name);
    5959                void  InputUpdateFromConstant(int constant, int name);
    6060                void  InputUpdateFromConstant(bool constant, int name);
    61                 void  InputUpdateFromSolution(double* solution){_error_("Not implemented yet!");}
     61                void  InputUpdateFromSolution(IssmDouble* solution){_error_("Not implemented yet!");}
    6262                void  InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("Not implemented yet!");}
    6363                /*}}}*/
     
    7070                int    GetVertexId(void);
    7171#ifdef _HAVE_DIAGNOSTIC_
    72                 void   GetCoordinateSystem(double* coord_system_out);
     72                void   GetCoordinateSystem(IssmDouble* coord_system_out);
    7373#endif
    7474                void   SetVertexDof(int in_dof);
     
    7777                int    GetNumberOfDofs(int approximation_enum,int setenum);
    7878                int    IsClone();
    79                 void   ApplyConstraint(int dof,double value);
     79                void   ApplyConstraint(int dof,IssmDouble value);
    8080                void   RelaxConstraint(int dof);
    8181                void   DofInSSet(int dof);
     
    8888                int    GetDofList1(void);
    8989                int    GetSidList(void);
    90                 double GetX();
    91                 double GetY();
    92                 double GetZ();
    93                 double GetSigma();
     90                IssmDouble GetX();
     91                IssmDouble GetY();
     92                IssmDouble GetZ();
     93                IssmDouble GetSigma();
    9494                int    IsOnBed();
    9595                int    IsOnSurface();
     
    9797                int    IsFloating();
    9898                int    IsGrounded();
    99                 void   UpdateSpcs(double* ys);
    100                 void   VecMerge(Vector* ug, double* vector_serial,int setenum);
    101                 void   VecReduce(Vector* vector, double* ug_serial,int setnum);
     99                void   UpdateSpcs(IssmDouble* ys);
     100                void   VecMerge(Vector* ug, IssmDouble* vector_serial,int setenum);
     101                void   VecReduce(Vector* vector, IssmDouble* ug_serial,int setnum);
    102102               
    103103                /*}}}*/
  • issm/trunk-jpl/src/c/objects/OptPars.h

    r9563 r12322  
    88struct OptPars{
    99
    10         double xmin;
    11         double xmax;
    12         double cm_jump;
     10        IssmDouble xmin;
     11        IssmDouble xmax;
     12        IssmDouble cm_jump;
    1313        int maxiter;
    1414
  • issm/trunk-jpl/src/c/objects/Patch.h

    r10400 r12322  
    3434                int     maxnodes;    // maxnodes corresponds to the largest amout of nodes on a given element, determined by the interpolation type.
    3535               
    36                 double* values;  //result values
     36                IssmDouble* values;  //result values
    3737
    3838                Patch();
     
    4040                ~Patch();
    4141                void fillelementinfo(int row, int element_id, int* vertices_ids, int num_vertices);
    42                 void fillresultinfo(int row,int enum_type,int step, double time, int interpolation, double* nodal_values, int num_nodes);
     42                void fillresultinfo(int row,int enum_type,int step, IssmDouble time, int interpolation, IssmDouble* nodal_values, int num_nodes);
    4343                void Gather(void);
    4444
  • issm/trunk-jpl/src/c/objects/Segment.h

    r12014 r12322  
    1515        public:
    1616                int eid;
    17                 double x1;
    18                 double y1;
    19                 double x2;
    20                 double y2;
     17                IssmDouble x1;
     18                IssmDouble y1;
     19                IssmDouble x2;
     20                IssmDouble y2;
    2121
    2222                /*Segment constructors, destructors {{{1*/
    2323                Segment();
    24                 Segment(int eid,double x1,double y1, double x2, double y2);
     24                Segment(int eid,IssmDouble x1,IssmDouble y1, IssmDouble x2, IssmDouble y2);
    2525                ~Segment();
    2626                /*}}}*/
  • issm/trunk-jpl/src/c/objects/Update.h

    r10576 r12322  
    1515        public:
    1616
    17                 virtual void  InputUpdateFromVector(double* vector, int name, int type)=0;
     17                virtual void  InputUpdateFromVector(IssmDouble* vector, int name, int type)=0;
    1818                virtual void  InputUpdateFromVector(int* vector, int name, int type)=0;
    1919                virtual void  InputUpdateFromVector(bool* vector, int name, int type)=0;
    2020                #ifdef _HAVE_DAKOTA_
    21                 virtual void  InputUpdateFromMatrixDakota(double* matrix, int rows, int ncols, int name, int type)=0;
    22                 virtual void  InputUpdateFromVectorDakota(double* vector, int name, int type)=0;
     21                virtual void  InputUpdateFromMatrixDakota(IssmDouble* matrix, int rows, int ncols, int name, int type)=0;
     22                virtual void  InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type)=0;
    2323                virtual void  InputUpdateFromVectorDakota(int* vector, int name, int type)=0;
    2424                virtual void  InputUpdateFromVectorDakota(bool* vector, int name, int type)=0;
    2525                #endif
    26                 virtual void  InputUpdateFromConstant(double constant, int name)=0;
     26                virtual void  InputUpdateFromConstant(IssmDouble constant, int name)=0;
    2727                virtual void  InputUpdateFromConstant(int constant, int name)=0;
    2828                virtual void  InputUpdateFromConstant(bool constant, int name)=0;
    29                 virtual void  InputUpdateFromSolution(double* solution)=0;
     29                virtual void  InputUpdateFromSolution(IssmDouble* solution)=0;
    3030                virtual void  InputUpdateFromIoModel(int index, IoModel* iomodel)=0;
    3131
  • issm/trunk-jpl/src/c/objects/Vertex.h

    r12014 r12322  
    2525                int    id;
    2626                int    sid;            //sid for "serial" id, ie the rank of this vertex in the vertices dataset, if the dataset was serial on 1 cpu.
    27                 double x;
    28                 double y;
    29                 double z;
    30                 double sigma;          //sigma coordinate: (z-bed)/thickness
     27                IssmDouble x;
     28                IssmDouble y;
     29                IssmDouble z;
     30                IssmDouble sigma;          //sigma coordinate: (z-bed)/thickness
    3131                int    connectivity;   //number of vertices connected to this vertex
    3232
     
    3737                /*Vertex constructors, destructors {{{1*/
    3838                Vertex();
    39                 Vertex(int id, int sid,double x, double y, double z, double sigma, int connectivity);
    40                 void Init(int id, int sid, double x, double y, double z, double sigma,int connectivity);
     39                Vertex(int id, int sid,IssmDouble x, IssmDouble y, IssmDouble z, IssmDouble sigma, int connectivity);
     40                void Init(int id, int sid, IssmDouble x, IssmDouble y, IssmDouble z, IssmDouble sigma,int connectivity);
    4141                Vertex(int id, int sid, int i, IoModel* iomodel);
    4242                ~Vertex();
     
    6060                int   Sid(void);
    6161                int   Connectivity(void);
    62                 void  UpdatePosition(Vector* vz,Parameters* parameters,double* thickness,double* bed);
     62                void  UpdatePosition(Vector* vz,Parameters* parameters,IssmDouble* thickness,IssmDouble* bed);
    6363                /*}}}*/
    6464};
Note: See TracChangeset for help on using the changeset viewer.