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

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

List the contents of a .mod file to screen. More...

Functions/Subroutines

program listmod
 Reads an input or output structure model file for Eggeltons TWIN code and lists the properties of each model it contains. One can then select a model to display its contents more precisely and optionally copy the model to a different file to serve as input. More...
 
subroutine error_reading_header (b)
 
subroutine error_reading_block (l)
 
subroutine list_mod_file (fname, nblk, save_dh)
 List the global contents of the structure models in a .mod file to screen. More...
 
subroutine print_mod_details (fname, blk, save_dh)
 Print the details of a structure model from a .mod file to screen. More...
 
subroutine copy_mod (infile, blk, save_dh)
 Copy a structure model from a .mod file (H or H and DH) to a new file. More...
 

Detailed Description

List the contents of a .mod file to screen.

AF 2003-12-17

Function/Subroutine Documentation

subroutine copy_mod ( character, dimension(*), intent(in)  infile,
integer, intent(in)  blk,
logical, intent(in)  save_dh 
)

Copy a structure model from a .mod file (H or H and DH) to a new file.

Parameters
infileName of the input (.mod) file
blkNumber of the structure-model block in the file to copy
save_dhDH is saved along H if true
Note
99 columns max

References error_reading_block(), error_reading_header(), and quit_program().

Referenced by listmod().

subroutine error_reading_block ( integer, intent(in)  l)

Referenced by copy_mod(), and print_mod_details().

subroutine error_reading_header ( integer, intent(in)  b)

Referenced by copy_mod(), and print_mod_details().

subroutine list_mod_file ( character, dimension(*), intent(in)  fname,
integer, intent(out)  nblk,
logical, intent(inout)  save_dh 
)

List the global contents of the structure models in a .mod file to screen.

Parameters
fnameName of the .mod file
Return values
nblkNumber of the structure-model block in the file to print
save_dhDH is saved along H if true (inout)

Referenced by listmod().

program listmod ( )

Reads an input or output structure model file for Eggeltons TWIN code and lists the properties of each model it contains. One can then select a model to display its contents more precisely and optionally copy the model to a different file to serve as input.

References copy_mod(), findfile(), list_mod_file(), print_mod_details(), and setconstants().

subroutine print_mod_details ( character, dimension(*), intent(in)  fname,
integer, intent(in)  blk,
logical, intent(in)  save_dh 
)

Print the details of a structure model from a .mod file to screen.

Parameters
fnameName of the .mod file
blkNumber of the structure-model block in the file to print
save_dhDH is saved along H if true

References error_reading_block(), and error_reading_header().

Referenced by listmod().