write_global_field_vtk Subroutine

private subroutine write_global_field_vtk(global_field, state, filename, is_ok, message)

Write the assembled global field as legacy-ASCII VTK STRUCTURED_POINTS. Cell-centred: ORIGIN at the first cell centre, SPACING=(dx,dy). Emits SCALARS rho, SCALARS pressure, VECTORS velocity (i fastest, then j).

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: global_field(:,:,:)
type(solver_state_2d_t), intent(in) :: state
character(len=*), intent(in) :: filename
logical, intent(out) :: is_ok
character(len=*), intent(out) :: message