evTools
Tools to manipulate and display output from the binary stellar-evolution code ev/STARS/TWIN
 All Classes Files Functions Variables Pages
Data Types | Functions/Subroutines
mdl_functions.f90 File Reference

(evTools version 0.4.1, revision 191, hash 60997ac (2015-04-25))

Routines to help plot the data contained in mdl[12] files. More...

Data Types

module  mdl_data
 Shared variables for mdl[12] programs. More...
 

Functions/Subroutines

subroutine compute_mdl_variables (dat)
 Compute secondary variables from the primary variables in a .mdl[12] file. More...
 
subroutine list_mdl_models (infile, nblk)
 Read all structure models in the file and display main properties. More...
 
subroutine print_mdl_details (infile, blk, svblk)
 Print the details of model blk in file infile to screen. More...
 
subroutine read_first_mdls (infile, blk)
 Open a .mdl[12] file and read the first blk models without storing the data. More...
 
subroutine read_chosen_mdl (blk, mdl, age, dat)
 Read the chosen structure model from an open .mdl[12] file. More...
 
subroutine set_mdl_labels
 Defines the variable labels for the mdl[12] format. More...
 

Detailed Description

Routines to help plot the data contained in mdl[12] files.

Function/Subroutine Documentation

subroutine compute_mdl_variables ( real(double), dimension(nq,nm), intent(inout)  dat)

Compute secondary variables from the primary variables in a .mdl[12] file.

Parameters
datData array (in/out)

References a2p(), and rl2a().

Referenced by plotmdl().

subroutine list_mdl_models ( character, dimension(*), intent(in)  infile,
integer, intent(out)  nblk 
)

Read all structure models in the file and display main properties.

Parameters
infileName of the .mdl[12] input file
Return values
nblkNumber of stellar-structure blocks in the file

Referenced by listmdl(), and plotmdl().

subroutine print_mdl_details ( character, dimension(99), intent(in)  infile,
integer, intent(in)  blk,
logical, intent(inout)  svblk 
)

Print the details of model blk in file infile to screen.

Parameters
infileName of the input file
blkNumber of the stellar-structure block to display
svblkSave block or not (in/out)

References read_first_mdls().

Referenced by listmdl().

subroutine read_chosen_mdl ( integer, intent(in)  blk,
integer, intent(out)  mdl,
real(double), intent(out)  age,
real(double), dimension(nq,nn), intent(out)  dat 
)

Read the chosen structure model from an open .mdl[12] file.

Parameters
blkNumber of the stellar-structure block to display
Return values
mdlModel number of the selected model
ageAge of the selected model
datData for the selected model

Referenced by plotmdl().

subroutine read_first_mdls ( character, dimension(*), intent(in)  infile,
integer, intent(in)  blk 
)

Open a .mdl[12] file and read the first blk models without storing the data.

Parameters
infileName of the input file
blkNumber of the stellar-structure blocks to read (and ignore)

Referenced by plotmdl(), and print_mdl_details().

subroutine set_mdl_labels ( )

Defines the variable labels for the mdl[12] format.

Referenced by plotmdl().