AdH Kraken 0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
general_maps.c File Reference

Functions

void local_dofs_to_global_dofs (int *global_dofs, int ndofs_on_ele, int *dofs, int *local_range, int *ghosts)
 This function takes an array of local (to process) degrees of freedom and gives the global d.o.f. numbers. More...
 
int global_to_local (int global_col_no, int local_size, int *ghosts, int nghost)
 This function takes a global degree of freedom and gives the local (to processor) d.o.f. number. More...
 

Detailed Description

This file collections functions responsible for finding order of finite element degrees of freedom

Function Documentation

◆ global_to_local()

int global_to_local ( int  global_col_no,
int  local_size,
int *  ghosts,
int  nghost 
)

This function takes a global degree of freedom and gives the local (to processor) d.o.f. number.

Author
Count Corey J. Trahan
Mark Loveland
Bug:
none
Warning
none
Parameters
[in]global_col_no(int) - global d.o.f. number corresponding to the local dofs
[in]local_size(int) - number of degrees of freedom owned by processor
[in]ghosts(int*) - array of d.o.f. numbers that aren't owned by processor
[in]nghost(int) - number of ghost d.o.f
Returns
(int) - degree of freedom number local to process
Note

◆ local_dofs_to_global_dofs()

void local_dofs_to_global_dofs ( int *  global_dofs,
int  ndofs_on_ele,
int *  dofs,
int *  local_range,
int *  ghosts 
)

This function takes an array of local (to process) degrees of freedom and gives the global d.o.f. numbers.

Author
Count Corey J. Trahan
Mark Loveland
Bug:
none
Warning
none
Parameters
[in,out]global_dofs(int*) - array of global dofs corresponding to the local dofs
[in]ndofs_on_ele(int) - number of degrees of freedom to be calculated
[in]dofs(int*) - array of dofs local to the process
[in]local_range(int*) - array of 2 integers, first is global dof start and second is global dof end
[in]ghosts(int*) - array of global dof numbers for ghost dofs on the process
Note