mesa_script 0.1.9 → 0.2.0
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.
- checksums.yaml +4 -4
- data/lib/mesa_script.rb +12 -3
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6da8112adad23e4734374e1a3464310191e1372da9825668217c6fb3a7f7e19
|
4
|
+
data.tar.gz: 94e45e7647b44d50ad53bfc93fdd68417a06880225fc1206f713cd6d34deda84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 904b87d477f8d7625357bd4c1df0eb943180d693668904cd50246826db17185e24b1a6a83a2e8cf77f1cdabbdbba7e892ed1eb8b5d4ca12e853f7da076630810
|
7
|
+
data.tar.gz: 74bd40a0f387b9105be03d3195d73d5899465e875bb25d81f23f09560652a0f61aa7b22b725125278776d8703aa8d5edd04a1e272fc23ac87f22574696aba35b
|
data/lib/mesa_script.rb
CHANGED
@@ -19,6 +19,15 @@ class Inlist
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
# Determine proper file location for star-related .inc files
|
23
|
+
def self.star_or_star_data
|
24
|
+
if Inlist.version >= 12245
|
25
|
+
'star_data'
|
26
|
+
else
|
27
|
+
'star'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
22
31
|
# these hold the names of the namelists as well as the locations of the
|
23
32
|
# fortran files that define their controls as well as the defaults files
|
24
33
|
# that define their default values and order in formatted inlists
|
@@ -129,7 +138,7 @@ class Inlist
|
|
129
138
|
def self.add_star_job_defaults(verbose: false)
|
130
139
|
config_namelist(
|
131
140
|
namelist: :star_job,
|
132
|
-
source_files: File.join(ENV['MESA_DIR'],
|
141
|
+
source_files: File.join(ENV['MESA_DIR'], star_or_star_data, 'private',
|
133
142
|
'star_job_controls.inc'),
|
134
143
|
defaults_file: File.join(ENV['MESA_DIR'], 'star', 'defaults',
|
135
144
|
'star_job.defaults'),
|
@@ -141,7 +150,7 @@ class Inlist
|
|
141
150
|
def self.add_controls_defaults(verbose: false)
|
142
151
|
config_namelist(
|
143
152
|
namelist: :controls,
|
144
|
-
source_files: [File.join(ENV['MESA_DIR'],
|
153
|
+
source_files: [File.join(ENV['MESA_DIR'], star_or_star_data, 'private',
|
145
154
|
'star_controls.inc'),
|
146
155
|
File.join(ENV['MESA_DIR'], 'star', 'private',
|
147
156
|
"ctrls_io.#{f_end}")],
|
@@ -155,7 +164,7 @@ class Inlist
|
|
155
164
|
def self.add_pgstar_defaults(verbose: false)
|
156
165
|
config_namelist(
|
157
166
|
namelist: :pgstar,
|
158
|
-
source_files: File.join(ENV['MESA_DIR'],
|
167
|
+
source_files: File.join(ENV['MESA_DIR'], star_or_star_data, 'private',
|
159
168
|
'pgstar_controls.inc'),
|
160
169
|
defaults_file: File.join(ENV['MESA_DIR'], 'star', 'defaults',
|
161
170
|
'pgstar.defaults'),
|
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mesa_script
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Wolf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: MesaScript - a DSL for making dynamic inlists for the MESA stellar evolution
|
14
14
|
code.
|
15
|
-
email:
|
15
|
+
email: wolfwm@uwec.edu
|
16
16
|
executables:
|
17
17
|
- inlist2mesascript
|
18
18
|
extensions: []
|
@@ -21,7 +21,7 @@ files:
|
|
21
21
|
- README.md
|
22
22
|
- bin/inlist2mesascript
|
23
23
|
- lib/mesa_script.rb
|
24
|
-
homepage: https://
|
24
|
+
homepage: https://billwolf.space/MesaScript/
|
25
25
|
licenses:
|
26
26
|
- MIT
|
27
27
|
metadata: {}
|
@@ -40,8 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
requirements: []
|
43
|
-
|
44
|
-
rubygems_version: 2.7.6
|
43
|
+
rubygems_version: 3.0.6
|
45
44
|
signing_key:
|
46
45
|
specification_version: 4
|
47
46
|
summary: MesaScript is a domain specific language (DSL) that allows the user to write
|