Changeset 26469
- Timestamp:
- 10/04/21 06:39:42 (3 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/ExtrapolationAnalysis.h
r26047 r26469 10 10 11 11 class ExtrapolationAnalysis: public Analysis{ 12 12 13 13 public: 14 14 /*Model processing*/ -
issm/trunk-jpl/src/c/classes/AmrBamg.h
r23501 r26469 28 28 IssmDouble deviatoricerror_maximum; 29 29 30 31 30 /* Constructor, destructor etc*/ 32 31 AmrBamg(); 33 32 34 33 ~AmrBamg(); 35 34 … … 40 39 void ExecuteRefinementBamg(IssmDouble* field,IssmDouble* hmaxVertices,int** pdatalist,IssmDouble** pxylist,int** pelementslist); 41 40 void SetBamgOpts(IssmDouble hmin_in,IssmDouble hmax_in,IssmDouble err_in,IssmDouble gradation_in); 42 41 43 42 /*Access Method*/ 44 43 BamgOpts* GetBamgOpts(){return this->options;} 45 44 46 45 private: 47 46 BamgGeom* geometry; -
issm/trunk-jpl/src/c/classes/BarystaticContributions.h
r26285 r26469 31 31 int nocean; //number of ocean partitions 32 32 IssmDouble* pocean; //ocean partition (nel) 33 33 34 34 /*BarystaticContributions constructors, destructors :*/ 35 35 BarystaticContributions(IoModel* iomodel ); -
issm/trunk-jpl/src/c/classes/Cfdragcoeffabsgrad.h
r25508 r26469 21 21 int weights_enum; 22 22 bool timepassedflag; 23 23 24 24 IssmDouble misfit; //value carried over in time. 25 25 26 26 /*Cfdragcoeffabsgrad constructors, destructors :*/ 27 27 Cfdragcoeffabsgrad(); 28 28 Cfdragcoeffabsgrad(char* in_name, int in_definitionenum, int in_weights_enum, bool timepassedflag); 29 29 ~Cfdragcoeffabsgrad(); 30 30 31 31 /*Object virtual function resolutoin: */ 32 32 Object* copy(); … … 36 36 void Marshall(MarshallHandle* marshallhandle); 37 37 int ObjectEnum(void); 38 38 39 39 /*Definition virtual function resolutoin: */ 40 40 int DefinitionEnum(); -
issm/trunk-jpl/src/c/classes/Cflevelsetmisfit.h
r26256 r26469 24 24 IssmDouble datatime; 25 25 bool timepassedflag; 26 26 27 27 IssmDouble misfit; //value carried over in time. 28 28 29 29 /*Cflevelsetmisfit constructors, destructors :*/ 30 30 Cflevelsetmisfit(); 31 31 Cflevelsetmisfit(char* in_name, int in_definitionenum, int in_model_enum, int in_observation_enum, int in_weights_enum, IssmDouble in_datatime, bool timepassedflag); 32 32 ~Cflevelsetmisfit(); 33 33 34 34 /*Object virtual function resolutoin: */ 35 35 Object* copy(); … … 39 39 void Marshall(MarshallHandle* marshallhandle); 40 40 int ObjectEnum(void); 41 41 42 42 /*Definition virtual function resolutoin: */ 43 43 int DefinitionEnum(); -
issm/trunk-jpl/src/c/classes/Cfsurfacelogvel.h
r25508 r26469 21 21 IssmDouble datatime; 22 22 bool timepassedflag; 23 23 24 24 IssmDouble misfit; //value carried over in time. 25 25 26 26 /*Cfsurfacelogvel constructors, destructors :*/ 27 27 Cfsurfacelogvel(); 28 28 Cfsurfacelogvel(char* in_name, int in_definitionenum, IssmDouble in_datatime, bool timepassedflag); 29 29 ~Cfsurfacelogvel(); 30 30 31 31 /*Object virtual function resolutoin: */ 32 32 Object* copy(); … … 36 36 void Marshall(MarshallHandle* marshallhandle); 37 37 int ObjectEnum(void); 38 38 39 39 /*Definition virtual function resolutoin: */ 40 40 int DefinitionEnum(); -
issm/trunk-jpl/src/c/classes/Cfsurfacesquare.h
r25508 r26469 26 26 IssmDouble datatime; 27 27 bool timepassedflag; 28 28 29 29 IssmDouble misfit; //value carried over in time. 30 30 31 31 /*Cfsurfacesquare constructors, destructors :*/ 32 32 Cfsurfacesquare(); 33 33 Cfsurfacesquare(char* in_name, int in_definitionenum, int in_model_enum, int in_observation_enum, int in_weights_enum, IssmDouble in_datatime, bool timepassedflag); 34 34 ~Cfsurfacesquare(); 35 35 36 36 /*Object virtual function resolutoin: */ 37 37 Object* copy(); … … 41 41 void Marshall(MarshallHandle* marshallhandle); 42 42 int ObjectEnum(void); 43 43 44 44 /*Definition virtual function resolutoin: */ 45 45 int DefinitionEnum(); -
issm/trunk-jpl/src/c/classes/Dakota/IssmParallelDirectApplicInterface.h
r19652 r26469 29 29 /*}}}*/ 30 30 31 32 31 #if !defined(_WRAPPERS_) && defined(_HAVE_DAKOTA_) && _DAKOTA_MAJOR_ >= 6 33 32 … … 37 36 namespace SIM { 38 37 class IssmParallelDirectApplicInterface: public Dakota::DirectApplicInterface{ 39 38 40 39 private: 41 40 FemModel* femmodel_init; -
issm/trunk-jpl/src/c/classes/Elements/Element.h
r26329 r26469 215 215 IssmDouble EnthalpyDiffusionParameterVolume(int numvertices,IssmDouble* enthalpy,IssmDouble* pressure); 216 216 IssmDouble PureIceEnthalpy(IssmDouble pressure); 217 218 217 219 218 /*Virtual functions*/ -
issm/trunk-jpl/src/c/classes/Elements/ElementHook.h
r25508 r26469 23 23 ~ElementHook(); 24 24 void Marshall(MarshallHandle* marshallhandle); 25 25 26 26 void DeepEcho(); 27 27 void Echo(); -
issm/trunk-jpl/src/c/classes/ExternalResults/GenericExternalResult.h
r26242 r26469 606 606 template <> inline void GenericExternalResult<IssmPDouble*>::Transpose(void){/*{{{*/ 607 607 608 609 608 /*Perform transpose only if we have a matrix*/ 610 609 if(M>1 && N>1){ … … 624 623 this->M = temp2; 625 624 626 627 628 625 } /*}}}*/ 629 626 -
issm/trunk-jpl/src/c/classes/Inputs/DatasetInput.h
r25508 r26469 20 20 int numberofelements_local; 21 21 int numberofvertices_local; 22 22 23 23 public: 24 24 int GetNumIds() const {return this->numids;}; -
issm/trunk-jpl/src/c/classes/Masscon.h
r25508 r26469 24 24 IssmDouble* levelset; 25 25 int M; 26 26 27 27 /*Masscon constructors, destructors :*/ 28 28 Masscon(){/*{{{*/ … … 101 101 IssmDouble all_mass_t=0.; 102 102 103 104 103 for(i=0;i<femmodel->elements->Size();i++){ 105 104 Element* element=(Element*)femmodel->elements->GetObjectByOffset(i); … … 109 108 ISSM_MPI_Allreduce ( (void*)&mass_t,(void*)&all_mass_t,1,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm()); 110 109 mass_t=all_mass_t; 111 110 112 111 return mass_t; 113 112 } -
issm/trunk-jpl/src/c/classes/Massconaxpby.h
r25508 r26469 26 26 IssmDouble alpha; 27 27 IssmDouble beta; 28 28 29 29 /*Massconaxpby constructors, destructors :*/ 30 30 Massconaxpby(){/*{{{*/ … … 47 47 this->namex = xNew<char>(strlen(in_namex)+1); 48 48 xMemCpy<char>(this->namex,in_namex,strlen(in_namex)+1); 49 49 50 50 this->namey = xNew<char>(strlen(in_namey)+1); 51 51 xMemCpy<char>(this->namey,in_namey,strlen(in_namey)+1); -
issm/trunk-jpl/src/c/classes/Massfluxatgate.h
r26281 r26469 42 42 /*}}}*/ 43 43 Massfluxatgate(char* in_name, int in_definitionenum, int in_numsegments, doubletype* in_segments) {/*{{{*/ 44 44 45 45 int i; 46 46 … … 83 83 this->y2=xNew<doubletype>(this->numsegments); xMemCpy<doubletype>(this->y2,in_y2,this->numsegments); 84 84 this->elements=xNew<int>(this->numsegments); xMemCpy<int>(this->elements,in_elements,this->numsegments); 85 85 86 86 } 87 87 } -
issm/trunk-jpl/src/c/classes/Misfit.h
r25508 r26469 24 24 char* timeinterpolation; 25 25 int weights_enum; 26 26 27 27 int lock; // if lock is on, we just return the value stored in "misfit". this is used so we don't compute misfit past the final_time 28 28 IssmDouble misfit; //value carried over in time. 29 29 30 30 /*Misfit constructors, destructors :*/ 31 31 Misfit(); 32 32 Misfit(char* in_name, int in_definitionenum, int in_model_enum, int in_observation_enum, char* in_timeinterpolation, int in_local, int in_weights_enum); 33 33 ~Misfit(); 34 34 35 35 /*Object virtual function resolutoin: */ 36 36 Object* copy(); … … 40 40 void Marshall(MarshallHandle* marshallhandle); 41 41 int ObjectEnum(void); 42 42 43 43 /*Definition virtual function resolutoin: */ 44 44 int DefinitionEnum(); -
issm/trunk-jpl/src/c/classes/Numberedcostfunction.h
r25508 r26469 9 9 #include "./Definition.h" 10 10 #include "./FemModel.h" 11 12 11 13 12 IssmDouble OutputDefinitionsResponsex(FemModel* femmodel,int output_enum); -
issm/trunk-jpl/src/c/classes/Options/Option.h
r25508 r26469 28 28 int ObjectEnum(){return OptionEnum;}; 29 29 30 31 30 /*virtual functions: */ 32 31 virtual char* Name()=0; -
issm/trunk-jpl/src/c/classes/Profiler.h
r26052 r26469 38 38 #define MAXPROFSIZE 25 /*Used to initialize static arrays*/ 39 39 40 41 40 class Profiler: public Object{ 42 41 -
issm/trunk-jpl/src/c/classes/Radar.h
r25508 r26469 18 18 char* name; 19 19 int definitionenum; 20 20 21 21 /*Radar constructors, destructors :*/ 22 22 Radar(); 23 23 Radar(char* in_name, int in_definitionenum); 24 24 ~Radar(); 25 25 26 26 /*Object virtual function resolutoin: */ 27 27 Object* copy(); … … 31 31 void Marshall(MarshallHandle* marshallhandle); 32 32 int ObjectEnum(void); 33 33 34 34 /*Definition virtual function resolutoin: */ 35 35 int DefinitionEnum(); -
issm/trunk-jpl/src/c/classes/SealevelGeometry.h
r26230 r26469 36 36 int nbar[SLGEOM_NUMLOADS]; 37 37 int* lids; 38 38 39 39 SealevelGeometry(int localnel,int localnods); 40 40 ~SealevelGeometry(); -
issm/trunk-jpl/src/c/classes/kriging/Covertree.h
r20827 r26469 95 95 bool isValidTree() const; 96 96 97 98 97 /** 99 98 * Remove point p from the cover tree. If p is not present in the tree, -
issm/trunk-jpl/src/c/classes/kriging/ExponentialVariogram.h
r25508 r26469 29 29 int ObjectEnum(){_error_("Not implemented yet");}; 30 30 31 32 31 /*Variogram functions*/ 33 32 double Covariance(double deltax,double deltay); -
issm/trunk-jpl/src/c/classes/kriging/PowerVariogram.h
r25508 r26469 29 29 int ObjectEnum(){_error_("Not implemented yet");}; 30 30 31 32 31 /*Variogram functions*/ 33 32 double Covariance(double deltax,double deltay); -
issm/trunk-jpl/src/c/classes/kriging/Quadtree.h
r25508 r26469 33 33 int ObjectEnum(){_error_("not implemented yet"); }; 34 34 35 36 35 /*Methods*/ 37 36 int IsWithinRange(double x,double y,double range); -
issm/trunk-jpl/src/c/classes/kriging/SphericalVariogram.h
r25508 r26469 29 29 int ObjectEnum(){_error_("Not implemented yet");}; 30 30 31 32 31 /*Variogram functions*/ 33 32 double Covariance(double deltax,double deltay); -
issm/trunk-jpl/src/c/modules/ConstraintsStatex/ConstraintsStateLocal.h
r16231 r26469 5 5 #ifndef _CONSTRAINTSSTATELOCAL_H 6 6 #define _CONSTRAINTSSTATELOCAL_H 7 8 7 9 8 #ifdef HAVE_CONFIG_H -
issm/trunk-jpl/src/c/modules/GetVectorFromInputsx/GetVectorFromInputsx.h
r25489 r26469 15 15 void GetVectorFromInputsx(IssmDouble** pvector,int* pvector_size, FemModel* femmodel,int name); 16 16 17 18 17 #endif /* _GETVECTORFROMINPUTSXX_H */ -
issm/trunk-jpl/src/c/modules/InputUpdateFromDakotax/InputUpdateFromDakotax.h
r25954 r26469 13 13 void InputScaleFromDakotax(FemModel* femmodel,IssmDouble* distributed_values,IssmDouble* partition, int npart, int nt, int name); 14 14 15 16 15 #endif /* _INPUTUPDATEFROMDAKOTAXX_H */ -
issm/trunk-jpl/src/c/modules/MeshPartitionx/MeshPartitionx.h
r24396 r26469 25 25 int* index2d=NULL; 26 26 int count=0; 27 28 27 29 28 switch(meshelementtype){ -
issm/trunk-jpl/src/c/shared/Matrix/matrix.h
r19563 r26469 25 25 void Matrix4x4Determinant(IssmDouble* Adet,IssmDouble* A); 26 26 void Matrix4x4Solve(IssmDouble* X,IssmDouble* A,IssmDouble* B); 27 27 28 28 void newcell(IssmDouble** pcell, IssmDouble newvalue, bool top, int m); 29 29 IssmDouble cellsum(IssmDouble* cell, int m); -
issm/trunk-jpl/src/c/toolkits/issm/IssmMpiSparseMat.h
r24682 r26469 90 90 /*}}}*/ 91 91 void Init(int Min,int Nin){/*{{{*/ 92 92 93 93 this->buckets=new DataSet(); 94 94 … … 288 288 } 289 289 } 290 290 291 291 /*Plug into matrix: */ 292 292 for(int i=0;i<this->m;i++) this->matrix[i]->SetValues(numvalues_perrow[i],cols_perrow[i],values_perrow[i],mods_perrow[i]); -
issm/trunk-jpl/src/c/toolkits/issm/IssmMpiVec.h
r26110 r26469 444 444 comm=IssmComm::GetComm(); 445 445 num_procs=IssmComm::GetSize(); 446 447 446 448 447 /*Allocate: */ -
issm/trunk-jpl/src/c/toolkits/issm/IssmSeqVec.h
r26135 r26469 334 334 } 335 335 /*}}}*/ 336 336 337 337 }; 338 338 #endif //#ifndef _ISSM_SEQ_VEC_H_ -
issm/trunk-jpl/src/c/toolkits/issm/SparseRow.h
r22737 r26469 19 19 int* indices; 20 20 doubletype* values; 21 21 22 22 /*SparseRow constructors, destructors*/ 23 23 SparseRow(){ /*{{{*/ … … 28 28 } /*}}}*/ 29 29 SparseRow(int in_M){/*{{{*/ 30 30 31 31 M=in_M; 32 32 ncols=0; … … 87 87 indices=xNew<int>(ncols); _assert_(indices); 88 88 values=xNewZeroInit<doubletype>(ncols); _assert_(values); 89 89 90 90 count=0; 91 91 for(i=0;i<numvalues;i++){ … … 96 96 } 97 97 } 98 98 99 99 if(count!=ncols)_error_("counter problem during set values operations"); 100 100 } /*}}}*/ … … 132 132 mult+=values[i]*X[indices[i]]; 133 133 } 134 134 135 135 return mult; 136 136 }
Note:
See TracChangeset
for help on using the changeset viewer.