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

Functions

void scoverage_alloc_init (SCOVERAGE **coverage, int nelems1D, int nelems2D, int nelems3D, int ncoverages1D, int ncoverages2D, int ncoverages3D)
 Allocates and intializes a SCOVERAGE structure. More...
 
void scoverage_free (SCOVERAGE *c)
 Frees a SCOVERAGE structure. More...
 
void scoverage_read (SCOVERAGE **cover, char *filebase)
 Reads coverages from file. More...
 

Detailed Description

This file collects methods of the SCOVERAGE structure for coverages

Function Documentation

◆ scoverage_alloc_init()

void scoverage_alloc_init ( SCOVERAGE **  coverage,
int  nelems1D,
int  nelems2D,
int  nelems3D,
int  ncoverages1D,
int  ncoverages2D,
int  ncoverages3D 
)

Allocates and intializes a SCOVERAGE structure.

Author
Corey Trahan, Ph.D.
Bug:
none
Warning
none
Parameters
[in,out]c(SCOVERAGE **) a double pointer to an AdH SCOVERAGE structure
[in]nelems1D(int) total # of 1D elements on the designer grid
[in]nelems2D(int) total # of 2D elements on the designer grid
[in]nelems3D(int) total # of 3D elements on the designer grid
Note

◆ scoverage_free()

void scoverage_free ( SCOVERAGE c)

Frees a SCOVERAGE structure.

Author
Corey Trahan, Ph.D.
Bug:
none
Warning
none
Parameters
[in,out]c(SCOVERAGE *) a pointer to an AdH SCOVERAGE structure
Note

◆ scoverage_read()

void scoverage_read ( SCOVERAGE **  cover,
char *  filebase 
)

Reads coverages from file.

Author
Corey Trahan, Ph.D.
Bug:
none
Warning
none
Parameters
[in,out]c(SCOVERAGE *) a pointer to an AdH SCOVERAGE structure
[in]fp(FILE *) a pointer to a coverage file
Note