Expand description in two error messages that seem to be encountered most often

among new users.
This commit is contained in:
Paul Romano 2014-06-25 20:45:24 -04:00
parent 5bcf714d0f
commit e024bdb328
2 changed files with 11 additions and 3 deletions

View file

@ -269,7 +269,7 @@ module global
character(MAX_FILE_LEN) :: path_output = '' ! Path to output directory
! Message used in message/warning/fatal_error
character(MAX_LINE_LEN) :: message
character(2*MAX_LINE_LEN) :: message
! Random number seed
integer(8) :: seed = 1_8

View file

@ -80,7 +80,11 @@ contains
filename = trim(path_input) // "settings.xml"
inquire(FILE=filename, EXIST=file_exists)
if (.not. file_exists) then
message = "Settings XML file '" // trim(filename) // "' does not exist!"
message = "Settings XML file '" // trim(filename) // "' does not exist! &
&In order to run OpenMC, you first need a set of input files; at a &
&minimum, this includes settings.xml, geometry.xml, and &
&materials.xml. Please consult the user's guide at &
&http://mit-crpg.github.io/openmc for further information."
call fatal_error()
end if
@ -98,7 +102,11 @@ contains
call get_environment_variable("CROSS_SECTIONS", env_variable)
if (len_trim(env_variable) == 0) then
message = "No cross_sections.xml file was specified in settings.xml &
&or in the CROSS_SECTIONS environment variable."
&or in the CROSS_SECTIONS environment variable. OpenMC needs a &
&cross_sections.xml file to identify where to find ACE cross &
&section libraries. Please consult the user's guide at &
&http://mit-crpg.github.io/openmc for information on how to set &
&up ACE cross section libraries."
call fatal_error()
else
path_cross_sections = trim(env_variable)