mesa_script 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/mesa_script.rb +25 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3ab0f331d6f6656414f2436937c9c22752722535290be3356637393459604fc7
|
4
|
+
data.tar.gz: 6ce60e13a3879f893a4b1a3d5d5dc3aefb65e393d361906652290f987c964899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faff5eeb809f3c538194f4462ff2b53955fee0afb973defdd7d9d8dbf57719fce4c496346e8713cd5018fc424fc420fede908ce61233162667ea96ef957ac02b
|
7
|
+
data.tar.gz: b4ce39b6da30a6acce0be9899450e03290714c05e980cda5edfe57d6499679ed7549b9c90f2cb9b633ab27e33bab3c0733c49b2c81f135234157daa14b874fbd
|
data/lib/mesa_script.rb
CHANGED
@@ -163,15 +163,29 @@ class Inlist
|
|
163
163
|
)
|
164
164
|
end
|
165
165
|
|
166
|
-
# short hand for adding
|
167
|
-
# of 10108
|
168
|
-
def self.
|
166
|
+
# short hand for adding binary_controls_defaults namelist using sensible
|
167
|
+
# defaults as of 10108
|
168
|
+
def self.add_binary_controls_defaults(verbose: false)
|
169
169
|
config_namelist(
|
170
170
|
namelist: :binary_controls,
|
171
171
|
source_files: File.join(ENV['MESA_DIR'], 'binary', 'public',
|
172
172
|
'binary_controls.inc'),
|
173
173
|
defaults_file: File.join(ENV['MESA_DIR'], 'binary', 'defaults',
|
174
|
-
'binary_controls.defaults')
|
174
|
+
'binary_controls.defaults'),
|
175
|
+
verbose: verbose
|
176
|
+
)
|
177
|
+
end
|
178
|
+
|
179
|
+
# short hand for adding binary_job_defaults namelist using sensible defaults
|
180
|
+
# as of 10108
|
181
|
+
def self.add_binary_job_defaults(verbose: false)
|
182
|
+
config_namelist(
|
183
|
+
namelist: :binary_job,
|
184
|
+
source_files: File.join(ENV['MESA_DIR'], 'binary', 'private',
|
185
|
+
'binary_job_controls.inc'),
|
186
|
+
defaults_file: File.join(ENV['MESA_DIR'], 'binary', 'defaults',
|
187
|
+
'binary_job.defaults'),
|
188
|
+
verbose: verbose
|
175
189
|
)
|
176
190
|
end
|
177
191
|
|
@@ -183,6 +197,13 @@ class Inlist
|
|
183
197
|
add_pgstar_defaults
|
184
198
|
end
|
185
199
|
|
200
|
+
# quickly add both major namelists for binary module (binary_job and
|
201
|
+
# binary_controls)
|
202
|
+
def self.add_binary_defaults
|
203
|
+
add_binary_job_defaults
|
204
|
+
add_binary_controls_defaults
|
205
|
+
end
|
206
|
+
|
186
207
|
############### NO MORE [SIMPLE] USER-CUSTOMIZABLE FEATURES BELOW ##############
|
187
208
|
|
188
209
|
# This tells the class to initialize its structure if it hasn't already.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mesa_script
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Wolf
|
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
41
|
version: '0'
|
42
42
|
requirements: []
|
43
43
|
rubyforge_project:
|
44
|
-
rubygems_version: 2.
|
44
|
+
rubygems_version: 2.7.6
|
45
45
|
signing_key:
|
46
46
|
specification_version: 4
|
47
47
|
summary: MesaScript is a domain specific language (DSL) that allows the user to write
|