GreenGroup/RMG-Java — Issue #245: Unreadable line in Restart/pdepnetworks.txt
Author: nickvandewiele
Created: 2012-01-20 15:13:16+00:00
State: open

When reading in a Restart folder containing Pdep reactions (pdepnetworks.txt, pdepreactions.txt), an unreadable line is detected and RMG crashes.

Might be due to e7e56cc0?

The exception is probably thrown in source/RMG/jing/rxnSys/ReactionModelGenerator.java on the line
```double A = Double.parseDouble(st.nextToken());``` where the Double parsing goes wrong.

pdepnetworks.txt
***
UnitsOfEa: kcal/mol
NumberOfFameTemps: 8
NumberOfFamePress: 5
NumberOfChebyTemps: 6
NumberOfChebyPress: 4
NumberOfPLogs: ```Could be different for seed and library reactions, but default for FAME-generated rates is probably 5```
***

Error trace:
Reading reactions from Restart folder
Reading seed mechanism from directory /home/nickv/JP10_pyrolysis/JP10-20jan_from
ERROR: java.lang.NumberFormatException: For input string: "Could"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.parseInt(Integer.java:514)
at jing.rxnSys.ReactionModelGenerator.readPDepNetworks(ReactionModelGenerato
at jing.rxnSys.ReactionModelGenerator.initializeReactionSystems(ReactionMode
at jing.rxnSys.ReactionModelGenerator.modelGeneration(ReactionModelGenerator
at RMG.main(RMG.java:96)

CRITICAL: For input string: "Could"

RMG execution terminated at 2012-01-20 09:44:54