Go to the documentation of this file.
29 character(max_fname_len) :: parameter_file
30 character(max_fname_len) :: binary_out_dir
38 if (iargc().eq.1)
then
39 call getarg(1, parameter_file)
40 elseif (iargc().eq.2)
then
41 call getarg(1, parameter_file)
42 call getarg(2, binary_out_dir)
48 print
'(A)',
"ERROR: wrong number of command-line arguments"
49 print
'(A)',
"Syntax for network calculation: ./winnet <parameter-file>"
50 print
'(A)',
"Syntax for network data creation: ./winnet <parameter-file> <binary-out-dir>"
62 if (iargc() .eq. 2)
then
98 call raise_exception(
"Invalid solver. Choose either solver = 0 or 1.",
"driver",&
122 end do evolution_loop
The timestep_module contains all timestep subroutines and newton-raphsons to solve the ODE system.
real(r_kind), dimension(:), allocatable y
real(r_kind), dimension(:), allocatable, public pf
Partition function for a given temperature.
subroutine, public select_optimistic_timestep(init)
Selects the timestep.
Module that contains necessary subroutines to write abundances to an hdf5 file.
logical use_prepared_network
Use a prepared folder with all necessary data in binary format.
subroutine output_param
Output parameters to a file.
subroutine expansion_finalize()
Close debug files of the module.
subroutine, public init_gear_solver(Y, t_init, h_init)
Initialize iteration variables.
subroutine, public advance_implicit_euler(cnt)
Advance system to the next step for the implicit Euler method.
Takes care of the temperature and entropy updates due to the nuclear energy release.
subroutine, public readini_finalize()
Readini cleanup subroutine.
subroutine, public output_iteration(cnt, ctime, T9, rho_b, entropy, Rkm, Y, pf)
Periodic output of analysis data for current iteration.
subroutine, public output_final_step(cnt, ctime, T9, rho_b, entropy, Rkm, Y, pf)
Output final step.
subroutine, public delete_io_file(file_name, raise_error)
Delete a file.
Subroutines to handle parametric evolution of hydrodynamic quantities after the final timestep of the...
real(r_kind) t9h_p
Temperature [GK] storage for heating mode 2.
subroutine, public finab(Y)
Compute final abundances and write final output.
subroutine read_param(parfile)
This function reads the parameter file.
subroutine, public output_final_stats(cnt, ctime)
Print final statistics.
integer evolution_mode
NSE, network hot/cold, etc.
subroutine, public raise_exception(msg, sub, error_code)
Raise a exception with a given error message.
subroutine, public switch_evolution_mode(init)
Switches between NSE and network modes (EM_NSE / EM_NETHOT / EM_NETCOLD)
Subroutines for initialization and parameter parsing.
Module to prepare the reaction network.
logical h_finab
Store the finab in hdf5 format rather than in ascii format.
subroutine create_rate_folder(path)
Create a folder with binary files that contain all necessary reaction data.
Module with helper functions such as rate tabulation, partition functions, and theoretical weak rates...
subroutine, public mergesort_finalize()
Close files and finalize this module.
subroutine, public write_finab(Y)
Write final abundances into hdf5 file.
logical, public data_creation_mode
Flag for rate creation mode.
real(r_kind) ent_p
Entropy [kB/baryon].
subroutine, public write_final_stats_rate_creation
Write the final stats for rate creation.
integer solver
solver flag (0 - implicit Euler, 1 - Gear's method, ...), is integer as it is faster than comparing s...
subroutine, public el_ab(Y, Ye)
Computes the electron fraction.
integer, public net_size
total number of isotopes (network size)
Provide some basic file-handling routines.
subroutine, public prepare_simulation
All the necessary initializations and settings before the main loop.
Contains various routines for analysis and diagnostic output.
real(r_kind) stepsize
Stepsize.
real(r_kind), dimension(:), allocatable dydt
Time derivative of the abundances.
subroutine, public analysis_finalize()
Close files at the end of the calculation.
real(r_kind), dimension(:), allocatable y_p
Abundances.
subroutine, public hdf5_module_finalize()
Finalize the hdf5 module.
Contains types and objects shared between multiple modules.
subroutine set_default_param
Sets default parameters Parameters are sorted in alphabetical order.
Module mergesort_module for merging arrays of rates.
Simulation variables for a single zone model.
subroutine, public output_initial_step(ctime, T9, rho_b, entropy, Rkm, Y, pf)
Output first step.
subroutine, public advance_gear(cnt)
Advance system to the next step using the Gear method (using gear_module)
gear_module contains adaptive high-order Gear solver
real(r_kind) t9_p
Temperature [GK].
Contains all runtime parameters as well as phys and math constants.
real(r_kind) ye_p
Electron fraction [mol/g].