0.6.0
Loading...
Searching...
No Matches
mod_scalar_field_initialization Module Reference

Functions/Subroutines

subroutine initialize_scalar_field (initializer, scalar_field)
 Initialize a scalar field given an initializer.
 

Function/Subroutine Documentation

◆ initialize_scalar_field()

subroutine mod_scalar_field_initialization::initialize_scalar_field ( class(t_scalar_initializer), intent(in) initializer,
double precision, dimension(:,:,:), intent(inout) scalar_field )

Initialize a scalar field given an initializer.

In the simple case (second order), the value of the initializer is computed at the center of the cell. Otherwise, for high order evaluation, we use an approximation of the integral using Gauss-Legendre quadrature points and weights. We use the variable n_legendre_points per dimension, leading to \( n^dim \) evaluations for a precision of order \( 2n \).