 |
Ice Sheet System Model
4.18
Code documentation
|
Go to the documentation of this file.
10 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
16 #include "../datastructures/datastructures.h"
20 #include "../modules/SurfaceAreax/SurfaceAreax.h"
21 #include "../classes/Params/Parameters.h"
22 #include "../classes/gauss/Gauss.h"
43 this->
name = xNew<char>(strlen(in_name)+1);
44 xMemCpy<char>(this->
name,in_name,strlen(in_name)+1);
82 _error_(
"not implemented yet!");
95 char* name2=xNew<char>(strlen(this->
name)+1);
133 int domaintype,numcomponents;
154 default:
_error_(
"not supported yet");
166 if(numcomponents==2){
175 for(
int ig=gauss->
begin();ig<gauss->end();ig++){
186 if(numcomponents==2){
197 if(numcomponents==1){
198 velocity_mag =fabs(vx)+epsvel;
199 obs_velocity_mag=fabs(vxobs)+epsvel;
202 velocity_mag =sqrt(vx*vx+vy*vy)+epsvel;
203 obs_velocity_mag=sqrt(vxobs*vxobs+vyobs*vyobs)+epsvel;
206 misfit=4*pow(meanvel,2)*pow(log(velocity_mag/obs_velocity_mag),2);
215 xDelete<IssmDouble>(xyz_list);
int ISSM_MPI_Allreduce(void *sendbuf, void *recvbuf, int count, ISSM_MPI_Datatype datatype, ISSM_MPI_Op op, ISSM_MPI_Comm comm)
void FindParam(bool *pvalue, int paramenum)
#define _printf_(StreamArgs)
static ISSM_MPI_Comm GetComm(void)
virtual Input2 * GetInput2(int inputenum)=0
void DeleteMaterials(void)
virtual DatasetInput2 * GetDatasetInput2(int inputenum)
abstract class for Element object This class is a place holder for the Tria and the Penta elements....
virtual Gauss * NewGauss(void)=0
abstract class for ExternalResult object
void GetVerticesCoordinates(IssmDouble **xyz_list)
IssmDouble Response(FemModel *femmodel)
int ISSM_MPI_Bcast(void *buffer, int count, ISSM_MPI_Datatype datatype, int root, ISSM_MPI_Comm comm)
#define _error_(StreamArgs)
virtual Element * SpawnTopElement(void)=0
virtual int begin(void)=0
Object * GetObjectByOffset(int offset)
@ WeightsSurfaceObservationEnum
virtual void JacobianDeterminant(IssmDouble *Jdet, IssmDouble *xyz_list, Gauss *gauss)=0
virtual void GaussPoint(int ig)=0
void FindParam(bool *pinteger, int enum_type)
T * xMemCpy(T *dest, const T *src, unsigned int size)
void Marshall(char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction)
IssmDouble Cfsurfacelogvel_Calculation(Element *element, int definitionenum)