snapshots_test_diffusion_m Module

Auxiliary module for test_diffusion for writing snapshopts to file



Subroutines

public subroutine initialize_snapsfile(mesh, filename)

Creates a snapfile and sets dimension and variables

Arguments

Type IntentOptional Attributes Name
type(mesh_cart_t), intent(in) :: mesh

Mesh

character(len=*), intent(in) :: filename

Filename of netcdf file

public subroutine write_to_snapsfile(mesh, tau, u_naive, u_supp)

Writes variables to snapsfile

Arguments

Type IntentOptional Attributes Name
type(mesh_cart_t), intent(in) :: mesh

Mesh

real(kind=FP), intent(in) :: tau

Time

real(kind=FP), intent(in), dimension(mesh%get_n_points()) :: u_naive

Variable of naive solution

real(kind=FP), intent(in), dimension(mesh%get_n_points()) :: u_supp

Variable of support operator solution

public subroutine finalize_snapsfile()

Closes snapsfile

Arguments

None