gs2crmod 0.5.14 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/gs2crmod.gemspec +1 -1
- data/lib/gs2crmod/ingen.rb +30 -16
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.15
|
data/gs2crmod.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "gs2crmod"
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.15"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Edmund Highcock", "Ferdinand van Wyk"]
|
data/lib/gs2crmod/ingen.rb
CHANGED
@@ -109,9 +109,10 @@ def ingen
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
-
|
113
|
-
# Grid Errors
|
114
|
-
|
112
|
+
###############
|
113
|
+
# Grid Errors #
|
114
|
+
###############
|
115
|
+
|
115
116
|
# naky
|
116
117
|
warning("Setting naky when non-linear mode is on is not recommended.") if @naky and @nonlinear_mode == "on"
|
117
118
|
|
@@ -131,18 +132,25 @@ def ingen
|
|
131
132
|
error("delt (#@delt) < delt_minimum") if @delt and @delt_minimum and @delt < @delt_minimum
|
132
133
|
|
133
134
|
# negrid
|
134
|
-
#
|
135
135
|
warning('negrid < 8 is not a good idea!') if @negrid and @negrid < 8
|
136
|
-
|
137
|
-
# Parallelisation Errors
|
138
136
|
|
139
|
-
|
137
|
+
#################################
|
138
|
+
# Parallelisation/Layout Errors #
|
139
|
+
#################################
|
140
|
+
|
141
|
+
# Best linear run layout is lexys
|
142
|
+
warning("The best layout for linear runs is usually lexys.") if @nonlinear_mode=="off" and not @layout=="lexys"
|
143
|
+
|
144
|
+
# Best nonlinear run layout is xyles
|
145
|
+
warning("The best layout for nonlinear runs is usually xyles.") if @nonlinear_mode=="on" and not @layout=="xyles"
|
146
|
+
|
140
147
|
# Check whether we are parallelising over x
|
141
148
|
warning("Parallelising over x: suggest total number of processors should be: #{max_nprocs_no_x}") if actual_number_of_processors > max_nprocs_no_x and not @grid_option == "single"
|
142
149
|
|
143
|
-
|
144
|
-
# Initialisation Errors
|
145
|
-
|
150
|
+
#########################
|
151
|
+
# Initialisation Errors #
|
152
|
+
#########################
|
153
|
+
|
146
154
|
# Check if restart folder exists
|
147
155
|
if @restart_file and @restart_file =~ /^(?<folder>[^\/]+)\//
|
148
156
|
folder = $~[:folder]
|
@@ -153,8 +161,10 @@ def ingen
|
|
153
161
|
|
154
162
|
error("ginit_option is 'many' but is_a_restart is false") if @ginit_option == "many" and not @is_a_restart
|
155
163
|
|
156
|
-
|
157
|
-
#
|
164
|
+
#####################
|
165
|
+
# Diagnostic errors #
|
166
|
+
#####################
|
167
|
+
|
158
168
|
#Check whether useful diagnostics have been omitted.
|
159
169
|
|
160
170
|
not_set = [:write_verr, :save_for_restart, :write_nl_flux, :write_final_fields, :write_final_moments].find_all do |diagnostic|
|
@@ -178,8 +188,10 @@ def ingen
|
|
178
188
|
|
179
189
|
warning("You will write out diagnostics less than 50 times") if @nstep/@nwrite < 50
|
180
190
|
|
181
|
-
|
182
|
-
|
191
|
+
########################
|
192
|
+
# Miscellaneous errors #
|
193
|
+
########################
|
194
|
+
|
183
195
|
error("The run name for this run is too long. Please move some of the variable settings to the local defaults file.") if @relative_directory.size + @run_name.size > MAX_NAME_SIZE
|
184
196
|
|
185
197
|
warning("You are submitting a nonlinear run with no dissipation.") if @nonlinear_mode == "on" and @hyper_option=="none" and @collision_model=="none"
|
@@ -188,8 +200,10 @@ def ingen
|
|
188
200
|
|
189
201
|
warning("The system will abort with rapid timestep changes...") if !@abort_rapid_time_step_change or @abort_rapid_time_step_change.fortran_true?
|
190
202
|
|
191
|
-
|
192
|
-
|
203
|
+
#############################
|
204
|
+
# Boundary Condition Errors #
|
205
|
+
#############################
|
206
|
+
|
193
207
|
warning("The correct BC is not being implemented. Preferably specify nonad_zero = true in input file.") if not (@nonad_zero and @nonad_zero.fortran_true?)
|
194
208
|
|
195
209
|
end
|