Neko 1.99.9
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
coef.f90 File Reference

Go to the source code of this file.

Data Types

type  coefs::coef_t
 Coefficients defined on a given (mesh, \( X_h \)) tuple. Arrays use indices (i,j,k,e): element e, local coordinate (i,j,k). More...
 

Modules

module  coefs
 Coefficients.
 

Functions/Subroutines

subroutine coefs::coef_init_empty (this, xh, msh)
 Initialize empty coefs for a space and a mesh.
 
subroutine coefs::coef_init_all (this, gs_h, scope)
 Initialize coefficients.
 
subroutine coefs::coef_free (this)
 Deallocate coefficients.
 
subroutine coefs::coef_release_scratch (this)
 Release the coefficients that COEF_OPERATOR does not retain.
 
subroutine coefs::coef_generate_dxyzdrst (c)
 
subroutine coefs::coef_generate_geo (c)
 Generate geometric data for the given mesh.
 
subroutine coefs::coef_metric_condition (this)
 Compute the largest condition number of the metric tensor over the mesh.
 
subroutine coefs::coef_generate_geo_compressed (c)
 Compute processor-local compressed versions of mappings Gij.
 
subroutine coefs::coef_generate_mass (c)
 Generate mass matrix B for the given mesh and space.
 
subroutine coefs::coef_require_facets (this, who)
 Abort unless this coef holds the facet areas and normals.
 
pure real(kind=rp) function, dimension(3) coefs::coef_get_normal (this, i, j, k, e, facet)
 Facet normal at a point.
 
pure real(kind=rp) function coefs::coef_get_area (this, i, j, k, e, facet)
 Facet area at a point.
 
subroutine coefs::coef_generate_area_and_normal (coef)
 Generate facet area and surface normals.
 
subroutine coefs::coef_generate_cyclic_bc (this)
 
subroutine coefs::coef_recompute_metrics (this)
 Recompute and update geometric factors (ALE)
 
subroutine coefs::coef_enable_lagged_mass (this)
 Enable separate memory for lagged B matrices if needed. For eg. when mesh moves.
 
subroutine coefs::coef_update_lagged_mass (this)
 Update history: Blaglag = Blag, Blag = B.
 

Variables

real(kind=rp), parameter, public coefs::neko_metric_cond_sp = 1.0e4_rp
 Largest metric condition number for which single precision storage of the geometric factors \( G_{ij} \) is considered safe.
 
integer, parameter, public coefs::coef_full = 0
 Retain every coefficient. The default, and the only scope that supports recompute_metrics(), generate_cyclic_bc(), get_area(), get_normal() and any consumer of jac, jacinv, Binv or the derivative arrays.
 
integer, parameter, public coefs::coef_operator = 1
 Retain only what applying a discrete operator needs: \( G_{ij} \), h1, h2, B and mult.