AdH Kraken 0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
smodel_alloc_init.c File Reference
#include "adh.h"

Functions

void smodel_alloc_init_array (SMODEL **mod, int *phys, int *physInit, int nmods, int *nvars)
 Allocates and array SMODEL structures. More...
 
void smodel_alloc_init (SMODEL *m, int phys, int physInit, int nvar)
 Allocates an SMODEL structure. More...
 

Detailed Description

This file collects methods to allocate an SMODEL structure

Function Documentation

◆ smodel_alloc_init()

void smodel_alloc_init ( SMODEL m,
int  phys,
int  physInit,
int  nvar 
)

Allocates an SMODEL structure.

Author
Corey Trahan, Ph.D.
Bug:
none
Warning
none
Parameters
[in,out]elemPhys(SMODEL **) the struct double pointer
[in]nelems(int) the total number of elements (1D, 2D, or 3D)
[in]nSubModels(int*) the total number of submodels on each element
Note

◆ smodel_alloc_init_array()

void smodel_alloc_init_array ( SMODEL **  mod,
int *  phys,
int *  physInit,
int  nmods,
int *  nvars 
)

Allocates and array SMODEL structures.

Author
Corey Trahan, Ph.D.
Bug:
none
Warning
none
Parameters
[in,out]mod(SMODEL **) the struct double pointer
[in]phys(int) a model ID for elemental residual functions, etc.
[in]phys_init(int) a model ID for elemental body initialization
[in]nmods(int) the number of SMODELs to allocate
[in]nvars(int *) the number of variables in each submodel
Note