Dice Fortran Backend Documentation
|
Contains NetCDF output functions for different problem main & equilibration runs. More...
Functions/Subroutines | |
subroutine | error_check (ierr) |
Checks error status at each point of NetCDF file build. More... | |
subroutine | write_qho_equilibration (position_array, energy_array, filename, ierr, QHO, accept_rate, alpha) |
Output QHO system traces for equilibration. More... | |
subroutine | write_h2plus_equilibration (position_array, energy_array, filename, ierr, H2plus, accept_rate, c, bond_length) |
Output H2_plus system trace for equilibration. More... | |
subroutine | write_h2_equilibration (position_array, energy_array, filename, ierr, H2, accept_rate, beta, bond_length) |
Output H2 system trace for equilibration. More... | |
subroutine | write_qho_main (alpha_array, energy_array, uncertainty_array, filename, ierr, QHO, accept_rate) |
Output results of QHO MCMC run. More... | |
subroutine | write_h2plus_main (param_array, bondlength_array, energy_array, uncertainty_array, filename, ierr, H2plus, accept_rate) |
Output results of H2plus MCMC run. More... | |
subroutine | write_h2_main (param_a_array, param_beta_array, bondlength_array, energy_array, uncertainty_array, filename, ierr, H2, accept_rate) |
Output results of H2 MCMC run. More... | |
subroutine | chain_output_1d (position_array, energy_array, filename, ierr) |
Output 1d position and energy arrays of MCMC run to NetCDF file [UNUSED]. More... | |
subroutine | chain_output_3d (position_array_3d, energy_array, filename, ierr) |
Output 3d position and 1d energy arrays of MCMC run to NetCDF file [UNUSED]. More... | |
subroutine | append_to_array (array, filename, ierr) |
Appends array to a 1d NetCDF array in file [UNUSED]. More... | |
Contains NetCDF output functions for different problem main & equilibration runs.
Module containing output functions for quantum harmonic oscillator (QHO), hydrogen ion (H_2_plus) and hydrogen molecule (H_2), for both main output MCMC runs and equilibration runs to determine burning / thinning parameters.
subroutine write_netcdf::error_check | ( | integer, intent(in) | ierr | ) |
Checks error status at each point of NetCDF file build.
Will print error message/code corresponding to ierr input.
[in] | ierr | Internal error value |
Definition at line 42 of file netcdf_out.f90.
subroutine write_netcdf::write_qho_equilibration | ( | real(real64), dimension(:), intent(in) | position_array, |
real(real64), dimension(:), intent(in) | energy_array, | ||
character(len=*), intent(in) | filename, | ||
integer | ierr, | ||
type(qho_type), intent(in) | QHO, | ||
real(real64), intent(in) | accept_rate, | ||
real(real64), intent(in) | alpha | ||
) |
Output QHO system traces for equilibration.
Takes problem specification for QHO system and writes the position and energy MCMC traces for use in equilibration runs.
[in] | position_array | 1D position trace |
[in] | energy_array | 1D energy trace |
[in] | filename | NetCDF filename |
[in] | QHO | QHO type from shared data |
[in] | accept_rate | Acceptance rate of MCMC run |
[in] | alpha | QHO wavefunction parameter |
Definition at line 73 of file netcdf_out.f90.
subroutine write_netcdf::write_h2plus_equilibration | ( | real(real64), dimension(:, :), intent(in) | position_array, |
real(real64), dimension(:), intent(in) | energy_array, | ||
character(len=*), intent(in) | filename, | ||
integer | ierr, | ||
type(h2plus_type), intent(in) | H2plus, | ||
real(real64), intent(in) | accept_rate, | ||
real(real64), intent(in) | c, | ||
real(real64), intent(in) | bond_length | ||
) |
Output H2_plus system trace for equilibration.
Takes problem specification for H2plus system and writes the MCMC trace for use in equilibration runs.
[in] | position_array | 3D position traces |
[in] | energy_array | 1D energy trace |
[in] | filename | NetCDF filename |
[in] | H2plus | H2plus type from shared data |
[in] | accept_rate | Acceptance rate of MCMC run |
[in] | c | H2plus system parameter |
[in] | bond_length | H2plus bondlength |
Definition at line 158 of file netcdf_out.f90.
subroutine write_netcdf::write_h2_equilibration | ( | real(real64), dimension(:, :), intent(in) | position_array, |
real(real64), dimension(:), intent(in) | energy_array, | ||
character(len=*), intent(in) | filename, | ||
integer | ierr, | ||
type(h2_type), intent(in) | H2, | ||
real(real64), intent(in) | accept_rate, | ||
real(real64), intent(in) | beta, | ||
real(real64), intent(in) | bond_length | ||
) |
Output H2 system trace for equilibration.
Takes problem specification for H2 system and writes the MCMC trace for use in equilibration runs.
[in] | position_array | 3D position traces |
[in] | energy_array | 1D energy trace |
[in] | filename | NetCDF filename |
[in] | H2 | H2 type from shared data |
[in] | accept_rate | Acceptance rate of MCMC run |
[in] | beta | H2 system parameter |
[in] | bond_length | H2 bondlength |
Definition at line 251 of file netcdf_out.f90.
subroutine write_netcdf::write_qho_main | ( | real(real64), dimension(:), intent(in) | alpha_array, |
real(real64), dimension(:), intent(in) | energy_array, | ||
real(real64), dimension(:), intent(in) | uncertainty_array, | ||
character(len=*), intent(in) | filename, | ||
integer | ierr, | ||
type(qho_type), intent(in) | QHO, | ||
real(real64), dimension(:), intent(in) | accept_rate | ||
) |
Output results of QHO MCMC run.
Outputs arrays of parameter (alpha) and energies at those values to be visualised, as well as run information as metadata.
[in] | alpha_array | Array of alpha values |
[in] | energy_array | Array of energy values |
[in] | uncertainty_array | Array of uncertainties in energy |
[in] | filename | NetCDF filename |
[in] | QHO | QHO type from shared data |
[in] | accept_rate | Acceptance rate of MCMC run |
Definition at line 347 of file netcdf_out.f90.
subroutine write_netcdf::write_h2plus_main | ( | real(real64), dimension(:), intent(in) | param_array, |
real(real64), dimension(:), intent(in) | bondlength_array, | ||
real(real64), dimension(:), intent(in) | energy_array, | ||
real(real64), dimension(:), intent(in) | uncertainty_array, | ||
character(len=*), intent(in) | filename, | ||
integer | ierr, | ||
type(h2plus_type), intent(in) | H2plus, | ||
real(real64), dimension(:), intent(in) | accept_rate | ||
) |
Output results of H2plus MCMC run.
Outputs arrays of bondlength and energies to be visualised, as well as run information as metadata.
[in] | param_array | Array of H2plus system parameters c |
[in] | bondlength_array | Array of bondlengths |
[in] | energy_array | Array of energy values |
[in] | uncertainty_array | Array of uncertainties in energy |
[in] | filename | NetCDF filename |
[in] | H2plus | H2plus type from shared data |
[in] | accept_rate | Acceptance rate of MCMC run |
Definition at line 437 of file netcdf_out.f90.
subroutine write_netcdf::write_h2_main | ( | real(real64), dimension(:), intent(in) | param_a_array, |
real(real64), dimension(:), intent(in) | param_beta_array, | ||
real(real64), dimension(:), intent(in) | bondlength_array, | ||
real(real64), dimension(:), intent(in) | energy_array, | ||
real(real64), dimension(:), intent(in) | uncertainty_array, | ||
character(len=*), intent(in) | filename, | ||
integer | ierr, | ||
type(h2_type), intent(in) | H2, | ||
real(real64), dimension(:), intent(in) | accept_rate | ||
) |
Output results of H2 MCMC run.
Outputs arrays of bondlength and energies to be visualised, as well as run information as metadata.
[in] | param_a_array | Array of H2 system a parameters |
[in] | param_beta_array | Array of H2 system beta parameters |
[in] | bondlength_array | Array of bondlengths |
[in] | energy_array | Array of energy values |
[in] | uncertainty_array | Array of uncertainties in energy |
[in] | filename | NetCDF filename |
[in] | H2 | H2 type from shared data |
[in] | accept_rate | Acceptance rate of MCMC run |
Definition at line 542 of file netcdf_out.f90.
subroutine write_netcdf::chain_output_1d | ( | real(real64), dimension(:), intent(in) | position_array, |
real(real64), dimension(:), intent(in) | energy_array, | ||
character(len=*), intent(in) | filename, | ||
integer | ierr | ||
) |
Output 1d position and energy arrays of MCMC run to NetCDF file [UNUSED].
[in] | position_array | Array of positions |
[in] | energy_array | Array of energy values |
[in] | filename | NetCDF filename |
Definition at line 646 of file netcdf_out.f90.
subroutine write_netcdf::chain_output_3d | ( | real(real64), dimension(:,:), intent(in) | position_array_3d, |
real(real64), dimension(:), intent(in) | energy_array, | ||
character(len=*), intent(in) | filename, | ||
integer | ierr | ||
) |
Output 3d position and 1d energy arrays of MCMC run to NetCDF file [UNUSED].
[in] | position_array | Array of positions |
[in] | energy_array | Array of energy values |
[in] | filename | NetCDF filename |
Definition at line 708 of file netcdf_out.f90.
subroutine write_netcdf::append_to_array | ( | real, dimension(:), intent(in) | array, |
character(len=*), intent(in) | filename, | ||
integer | ierr | ||
) |
Appends array to a 1d NetCDF array in file [UNUSED].
[in] | array | Array to be appended |
[in] | filename | NetCDF filename with array |
Definition at line 773 of file netcdf_out.f90.