Method: EnergyPlus::EpErrFile#init
- Defined in:
- lib/energyplus/EpErrFile.rb
#init ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/energyplus/EpErrFile.rb', line 33 def init @initialized = true if @path.exist? File.open(@path) do |f| text = '' text << f.read @valid = true @warnings = parse("Warning", text) @severe_errors = parse("Severe", text) @fatal_errors = parse("Fatal", text) if text =~ /\s\*{13} EnergyPlus Completed Successfully/ @successful = true end end end end |