Afivo  0.3
Functions/Subroutines | Variables
m_write_silo Module Reference

This module contains wrapper functions to simplify writing Silo files. More...

Functions/Subroutines

subroutine, public silo_create_file (filename, dbix)
 
subroutine, public silo_open_file (filename, dbix)
 
subroutine, public silo_close_file (dbix)
 
subroutine, public silo_mkdir (dbix, dirname)
 
subroutine, public silo_set_time_varying (dbix)
 Write two entries to the Silo file so that Visit treats it as a time-varying database. More...
 
subroutine, public silo_add_curve (dbix, curvename, xvals, yvals)
 Add a curve-object (pairs of x-y values) to the Silo file. More...
 
subroutine, public silo_add_grid (dbix, gridname, n_dim, N_r, r_min, dr, lo_offset, hi_offset, n_cycle)
 
subroutine, public silo_add_var (dbix, dataname, gridname, d_packed, d_shape, n_cycle)
 
subroutine, public silo_set_mmesh_grid (dbix, mmname, gridnames, n_cycle, time)
 
subroutine, public silo_set_mmesh_var (dbix, mvname, mmname, datanames, n_cycle, time)
 

Variables

integer, parameter dp = kind(0.0d0)
 
integer, parameter line_len = 200
 
integer, parameter db_type = DB_PDB
 

Detailed Description

This module contains wrapper functions to simplify writing Silo files.

Todo:
Document the functions in this module

Function/Subroutine Documentation

◆ silo_create_file()

subroutine, public m_write_silo::silo_create_file ( character(len=*), intent(in)  filename,
integer, intent(out)  dbix 
)

Definition at line 27 of file m_write_silo.f90.

◆ silo_open_file()

subroutine, public m_write_silo::silo_open_file ( character(len=*), intent(in)  filename,
integer  dbix 
)

Definition at line 42 of file m_write_silo.f90.

◆ silo_close_file()

subroutine, public m_write_silo::silo_close_file ( integer, intent(in)  dbix)

Definition at line 54 of file m_write_silo.f90.

◆ silo_mkdir()

subroutine, public m_write_silo::silo_mkdir ( integer, intent(in)  dbix,
character(len=*), intent(in)  dirname 
)

Definition at line 65 of file m_write_silo.f90.

◆ silo_set_time_varying()

subroutine, public m_write_silo::silo_set_time_varying ( integer, intent(in)  dbix)

Write two entries to the Silo file so that Visit treats it as a time-varying database.

Definition at line 79 of file m_write_silo.f90.

◆ silo_add_curve()

subroutine, public m_write_silo::silo_add_curve ( integer, intent(in)  dbix,
character(len=*), intent(in)  curvename,
real(dp), dimension(:), intent(in)  xvals,
real(dp), dimension(:), intent(in)  yvals 
)

Add a curve-object (pairs of x-y values) to the Silo file.

Definition at line 103 of file m_write_silo.f90.

◆ silo_add_grid()

subroutine, public m_write_silo::silo_add_grid ( integer, intent(in)  dbix,
character(len=*), intent(in)  gridname,
integer, intent(in)  n_dim,
integer, dimension(:), intent(in)  N_r,
real(dp), dimension(:), intent(in)  r_min,
real(dp), dimension(:), intent(in)  dr,
integer, dimension(n_dim), intent(in)  lo_offset,
integer, dimension(n_dim), intent(in)  hi_offset,
integer, intent(in), optional  n_cycle 
)

Definition at line 148 of file m_write_silo.f90.

◆ silo_add_var()

subroutine, public m_write_silo::silo_add_var ( integer, intent(in)  dbix,
character(len=*), intent(in)  dataname,
character(len=*), intent(in)  gridname,
real(dp), dimension(:), intent(in)  d_packed,
integer, dimension(:), intent(in)  d_shape,
integer, intent(in), optional  n_cycle 
)

Definition at line 238 of file m_write_silo.f90.

◆ silo_set_mmesh_grid()

subroutine, public m_write_silo::silo_set_mmesh_grid ( integer, intent(in)  dbix,
character(len=*), intent(in)  mmname,
character(len=*), dimension(:), intent(in)  gridnames,
integer, intent(in), optional  n_cycle,
real(dp), intent(in), optional  time 
)

Definition at line 299 of file m_write_silo.f90.

◆ silo_set_mmesh_var()

subroutine, public m_write_silo::silo_set_mmesh_var ( integer, intent(in)  dbix,
character(len=*), intent(in)  mvname,
character(len=*), intent(in)  mmname,
character(len=*), dimension(:), intent(in)  datanames,
integer, intent(in), optional  n_cycle,
real(dp), intent(in), optional  time 
)

Definition at line 360 of file m_write_silo.f90.

Variable Documentation

◆ dp

integer, parameter m_write_silo::dp = kind(0.0d0)
private

Definition at line 10 of file m_write_silo.f90.

◆ line_len

integer, parameter m_write_silo::line_len = 200
private

Definition at line 11 of file m_write_silo.f90.

◆ db_type

integer, parameter m_write_silo::db_type = DB_PDB
private

Definition at line 12 of file m_write_silo.f90.