vtk_fortran.f90 Source File


This file depends on

sourcefile~~vtk_fortran.f90~~EfferentGraph sourcefile~vtk_fortran.f90 vtk_fortran.f90 sourcefile~penf.f90 penf.F90 sourcefile~vtk_fortran.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_pvtk_file.f90 vtk_fortran_pvtk_file.f90 sourcefile~vtk_fortran.f90->sourcefile~vtk_fortran_pvtk_file.f90 sourcefile~vtk_fortran_vtk_file.f90 vtk_fortran_vtk_file.f90 sourcefile~vtk_fortran.f90->sourcefile~vtk_fortran_vtk_file.f90 sourcefile~vtk_fortran_vtm_file.f90 vtk_fortran_vtm_file.F90 sourcefile~vtk_fortran.f90->sourcefile~vtk_fortran_vtm_file.f90 sourcefile~penf_global_parameters_variables.f90 penf_global_parameters_variables.F90 sourcefile~penf.f90->sourcefile~penf_global_parameters_variables.f90 sourcefile~penf_b_size.f90 penf_b_size.F90 sourcefile~penf.f90->sourcefile~penf_b_size.f90 sourcefile~penf_stringify.f90 penf_stringify.F90 sourcefile~penf.f90->sourcefile~penf_stringify.f90 sourcefile~vtk_fortran_pvtk_file.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_ascii_local.f90 vtk_fortran_vtk_file_xml_writer_ascii_local.f90 sourcefile~vtk_fortran_pvtk_file.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_ascii_local.f90 sourcefile~befor64.f90 befor64.F90 sourcefile~vtk_fortran_pvtk_file.f90->sourcefile~befor64.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90 vtk_fortran_vtk_file_xml_writer_abstract.f90 sourcefile~vtk_fortran_pvtk_file.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90 sourcefile~vtk_fortran_vtk_file.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_vtk_file.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_ascii_local.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_appended.f90 vtk_fortran_vtk_file_xml_writer_appended.f90 sourcefile~vtk_fortran_vtk_file.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_appended.f90 sourcefile~vtk_fortran_vtk_file.f90->sourcefile~befor64.f90 sourcefile~vtk_fortran_vtk_file.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90 sourcefile~stringifor.f90 stringifor.F90 sourcefile~vtk_fortran_vtk_file.f90->sourcefile~stringifor.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_binary_local.f90 vtk_fortran_vtk_file_xml_writer_binary_local.f90 sourcefile~vtk_fortran_vtk_file.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_binary_local.f90 sourcefile~vtk_fortran_vtm_file.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_vtm_file.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_ascii_local.f90 sourcefile~vtk_fortran_vtm_file.f90->sourcefile~befor64.f90 sourcefile~vtk_fortran_vtm_file.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90 sourcefile~vtk_fortran_vtm_file.f90->sourcefile~stringifor.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_ascii_local.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_ascii_local.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_ascii_local.f90->sourcefile~stringifor.f90 sourcefile~vtk_fortran_dataarray_encoder.f90 vtk_fortran_dataarray_encoder.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_ascii_local.f90->sourcefile~vtk_fortran_dataarray_encoder.f90 sourcefile~penf_b_size.f90->sourcefile~penf_global_parameters_variables.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_appended.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_appended.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_appended.f90->sourcefile~stringifor.f90 sourcefile~vtk_fortran_parameters.f90 vtk_fortran_parameters.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_appended.f90->sourcefile~vtk_fortran_parameters.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_appended.f90->sourcefile~vtk_fortran_dataarray_encoder.f90 sourcefile~befor64.f90->sourcefile~penf.f90 sourcefile~befor64_pack_data_m.f90 befor64_pack_data_m.F90 sourcefile~befor64.f90->sourcefile~befor64_pack_data_m.f90 sourcefile~penf_stringify.f90->sourcefile~penf_global_parameters_variables.f90 sourcefile~penf_stringify.f90->sourcefile~penf_b_size.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90->sourcefile~stringifor.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90->sourcefile~vtk_fortran_parameters.f90 sourcefile~foxy.f90 foxy.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90->sourcefile~foxy.f90 sourcefile~stringifor.f90->sourcefile~penf.f90 sourcefile~stringifor_string_t.f90 stringifor_string_t.F90 sourcefile~stringifor.f90->sourcefile~stringifor_string_t.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_binary_local.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_binary_local.f90->sourcefile~vtk_fortran_vtk_file_xml_writer_abstract.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_binary_local.f90->sourcefile~stringifor.f90 sourcefile~vtk_fortran_vtk_file_xml_writer_binary_local.f90->sourcefile~vtk_fortran_dataarray_encoder.f90 sourcefile~stringifor_string_t.f90->sourcefile~penf.f90 sourcefile~stringifor_string_t.f90->sourcefile~befor64.f90 sourcefile~face.f90 face.F90 sourcefile~stringifor_string_t.f90->sourcefile~face.f90 sourcefile~vtk_fortran_parameters.f90->sourcefile~penf.f90 sourcefile~befor64_pack_data_m.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_dataarray_encoder.f90->sourcefile~penf.f90 sourcefile~vtk_fortran_dataarray_encoder.f90->sourcefile~befor64.f90 sourcefile~foxy.f90->sourcefile~penf.f90 sourcefile~foxy_xml_file.f90 foxy_xml_file.f90 sourcefile~foxy.f90->sourcefile~foxy_xml_file.f90 sourcefile~foxy_xml_tag.f90 foxy_xml_tag.F90 sourcefile~foxy.f90->sourcefile~foxy_xml_tag.f90 sourcefile~foxy_xml_file.f90->sourcefile~penf.f90 sourcefile~foxy_xml_file.f90->sourcefile~foxy_xml_tag.f90 sourcefile~foxy_xml_tag.f90->sourcefile~penf.f90 sourcefile~foxy_xml_tag.f90->sourcefile~stringifor.f90

Files dependent on this one

sourcefile~~vtk_fortran.f90~~AfferentGraph sourcefile~vtk_fortran.f90 vtk_fortran.f90 sourcefile~vtk_fortran_write_vtr.f90 vtk_fortran_write_vtr.f90 sourcefile~vtk_fortran_write_vtr.f90->sourcefile~vtk_fortran.f90 sourcefile~vtk_fortran_write_vts.f90 vtk_fortran_write_vts.f90 sourcefile~vtk_fortran_write_vts.f90->sourcefile~vtk_fortran.f90 sourcefile~vtk_fortran_write_vtu_tensor.f90 vtk_fortran_write_vtu_tensor.f90 sourcefile~vtk_fortran_write_vtu_tensor.f90->sourcefile~vtk_fortran.f90 sourcefile~vtk_fortran_write_vtm.f90 vtk_fortran_write_vtm.f90 sourcefile~vtk_fortran_write_vtm.f90->sourcefile~vtk_fortran.f90 sourcefile~vtk_fortran_write_vtu.f90 vtk_fortran_write_vtu.f90 sourcefile~vtk_fortran_write_vtu.f90->sourcefile~vtk_fortran.f90 sourcefile~vtk_fortran_write_volatile.f90 vtk_fortran_write_volatile.f90 sourcefile~vtk_fortran_write_volatile.f90->sourcefile~vtk_fortran.f90 sourcefile~vtk_fortran_use_module_basic.f90 vtk_fortran_use_module_basic.f90 sourcefile~vtk_fortran_use_module_basic.f90->sourcefile~vtk_fortran.f90 sourcefile~vtk_fortran_write_pvts.f90 vtk_fortran_write_pvts.f90 sourcefile~vtk_fortran_write_pvts.f90->sourcefile~vtk_fortran.f90

Contents

Source Code


Source Code

!< VTK_Fortran, pure Fortran (2003+) library to parse and emitt VTK files.
module vtk_fortran
!< VTK_Fortran, pure Fortran (2003+) library to parse and emitt VTK files.
use penf
use vtk_fortran_pvtk_file, only : pvtk_file
use vtk_fortran_vtk_file, only : vtk_file
use vtk_fortran_vtm_file, only : vtm_file

implicit none
private
public :: pvtk_file
public :: vtk_file
public :: vtm_file
public :: write_xml_volatile

contains
   function write_xml_volatile(xml_volatile, filename) result(error)
   !< Write the volatile file into a real file.
   !< This is what a master process should do into a parallel scenario where it being the only process allowed to access to
   !< filesystem: slave processes create XML volatile file econded into a characters string and master process collects and writes
   !< them by means of `write_xml_volatile`.
   character(*), intent(in) :: xml_volatile !< XML volatile file.
   character(*), intent(in) :: filename     !< XML file name.
   integer(I4P)             :: error        !< Status error.
   integer(I4P)             :: xml_unit     !< XML file unit.

   open(newunit=xml_unit,             &
        file=trim(adjustl(filename)), &
        form='UNFORMATTED',           &
        access='STREAM',              &
        action='WRITE',               &
        status='REPLACE',             &
        iostat=error)
   write(unit=xml_unit, iostat=error) xml_volatile
   endfunction write_xml_volatile
endmodule vtk_fortran