From 4cbd670001ceb94a43a91c45fc1a43bbd89fd030 Mon Sep 17 00:00:00 2001
From: aheinri5 <Anna@netzkritzler.de>
Date: Thu, 10 Dec 2020 17:44:25 +0100
Subject: [PATCH] [example] Line breaks

---
 inst/examples/read_from_benchmark_example.R | 32 +++++++++++++++------
 1 file changed, 23 insertions(+), 9 deletions(-)

diff --git a/inst/examples/read_from_benchmark_example.R b/inst/examples/read_from_benchmark_example.R
index 19bbc55..8ad480b 100644
--- a/inst/examples/read_from_benchmark_example.R
+++ b/inst/examples/read_from_benchmark_example.R
@@ -4,29 +4,43 @@ library(r2ogs6)
 
 #This is where the user defines their data.
 
-#============================== SET UP SIMULATION OBJECT ================================
 
-#If you want to test this, don't forget to alter the ogs_bin_path to fit your installation location!
+#===== SET UP SIMULATION OBJECT =====
+
+
+# If you run this, alter ogs_bin_path below to fit your installation location!
+
+ogs_bin_path <- paste0("D:\\Programme\\OpenGeoSys\\",
+                       "ogs-6.3.2-Windows-10.0.14393-x64-python-3.7.2-de-utils",
+                       "\\bin\\")
 
 #First, we need to create a simulation object.
 
 ogs6_obj <- OGS6$new(sim_name = "my_sim",
                      sim_id = 1,
                      sim_path = "D:\\OGS_Sim\\",
-                     ogs_bin_path = "D:\\Programme\\OpenGeoSys\\ogs-6.3.2-Windows-10.0.14393-x64-python-3.7.2-de-utils\\bin\\")
+                     ogs_bin_path = ogs_bin_path)
+
 
-#============================== READ IN .prj FILE ================================
+#===== READ IN .prj FILE =====
+
+
+# This will only work if the working directory is r2ogs6!
 
-#This will only work if the working directory is r2ogs6, but is fine for testing purposes.
 prj_path <- paste0("inst/extdata/flow_free_expansion/flow_free_expansion.prj")
 
-#prj_path = paste0("D:\\Programme\\OpenGeoSys\\ogs-master-Tests-Data-HydroMechanics\\",
-#                                        "Tests\\Data\\HydroMechanics\\IdealGas\\flow_no_strain\\flow_no_strain.prj")
+# Alternative path (also system dependent)
+alt_path = paste0("D:\\Programme\\OpenGeoSys\\",
+                  "ogs-master-Tests-Data-HydroMechanics\\",
+                  "Tests\\Data\\HydroMechanics\\IdealGas\\",
+                  "flow_no_strain\\flow_no_strain.prj")
 
 read_in_prj(ogs6_obj, prj_path)
 
-#============================== Execution ================================
 
-#Calls ogs6 object validator functions, exports all necessary files and starts OpenGeoSys6
+#===== Execution =====
+
+
+#Calls OGS6 validators, exports all necessary files and starts OpenGeoSys6
 
 run_simulation(ogs6_obj)
-- 
GitLab