Auxiliary module for test_diffusion for writing snapshopts to file
Creates a snapfile and sets dimension and variables
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mesh_cart_t), | intent(in) | :: | mesh |
Mesh |
||
| character(len=*), | intent(in) | :: | filename |
Filename of netcdf file |
Writes variables to snapsfile
| Type | Intent | Optional | 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 |
Closes snapsfile