GitLab will be shut down on June 25 to move to a new facility. https://www.eclipsestatus.io/incidents/5ffy27gwcbx7

Commit 2b084d7c authored by Greg Watson's avatar Greg Watson
Browse files

Fix so fern doesn't crash when reading INI file


Signed-off-by: Greg Watson's avatarGreg Watson <g.watson@computer.org>
parent 44aa1b04
......@@ -96,7 +96,7 @@ Here you can modify the various defaults with the values you would like for a
given Fern simulation. Once done, simply save the Item and click Go on the
Export to INI Process. This will execute the process of creating a new INI Fern
input file for use with the Fern Launcher. You can check the result by opening
the fern\_output.ini file, as shown below.
the fern\_config.ini file, as shown below.
\begin{center} \includegraphics[width=\textwidth]{figures/result}
\end{center}
......
......@@ -151,7 +151,7 @@ Add the following to your setupForm() method:
StringEntry massTol = new StringEntry();
massTol.setName("massTol");
massTol.setDescription("The mass tolerance to consider");
massTol.setDefaultValue("1e-7");
massTol.setDefaultValue("1.0e-7");
StringEntry fluxFrac = new StringEntry();
fluxFrac.setName("fluxFrac");
......@@ -192,12 +192,12 @@ Add the following to your setupForm() method:
StringEntry startTime = new StringEntry();
startTime.setName("startTime");
startTime.setDescription("The start time for the simulation.");
startTime.setDefaultValue("1e-20");
startTime.setDefaultValue("1.0e-20");
StringEntry endTime = new StringEntry();
endTime.setName("endTime");
endTime.setDescription("The end time for the simulation");
endTime.setDefaultValue("1e-8");
endTime.setDefaultValue("1.0e-8");
StringEntry initialTimeStep = new StringEntry();
initialTimeStep.setName("initialTimeStep");
......@@ -208,7 +208,7 @@ Add the following to your setupForm() method:
StringEntry density = new StringEntry();
density.setName("density");
density.setDescription("The initial density.");
density.setDefaultValue("1e8");
density.setDefaultValue("1.0e8");
initConditionsComp.addEntry(t9);
initConditionsComp.addEntry(startTime);
......
......@@ -103,7 +103,7 @@ public class FernModel extends Model {
StringEntry massTol = new StringEntry();
massTol.setName("massTol");
massTol.setDescription("The mass tolerance to consider");
massTol.setDefaultValue("1e-7");
massTol.setDefaultValue("1.0e-7");
StringEntry fluxFrac = new StringEntry();
fluxFrac.setName("fluxFrac");
......@@ -144,12 +144,12 @@ public class FernModel extends Model {
StringEntry startTime = new StringEntry();
startTime.setName("startTime");
startTime.setDescription("The start time for the simulation.");
startTime.setDefaultValue("1e-20");
startTime.setDefaultValue("1.0e-20");
StringEntry endTime = new StringEntry();
endTime.setName("endTime");
endTime.setDescription("The end time for the simulation");
endTime.setDefaultValue("1e-8");
endTime.setDefaultValue("1.0e-8");
StringEntry initialTimeStep = new StringEntry();
initialTimeStep.setName("initialTimeStep");
......@@ -159,7 +159,7 @@ public class FernModel extends Model {
StringEntry density = new StringEntry();
density.setName("density");
density.setDescription("The initial density.");
density.setDefaultValue("1e8");
density.setDefaultValue("1.0e8");
// Add the entries to the DataComponent!
initConditionsComp.addEntry(t9);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment