mesa_script 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mesa_script.rb +12 -3
  3. metadata +5 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db40aeb65138b602f30e9bcdd44d52b9de433297fb9a340de96595b4e2b38401
4
- data.tar.gz: 40061111a80be757fe6b0043cba66df69cae0a5cbc5c425b14adc18a94960b23
3
+ metadata.gz: c6da8112adad23e4734374e1a3464310191e1372da9825668217c6fb3a7f7e19
4
+ data.tar.gz: 94e45e7647b44d50ad53bfc93fdd68417a06880225fc1206f713cd6d34deda84
5
5
  SHA512:
6
- metadata.gz: be7e4b32cbb15f294d711e72a6c45262c307bfe937b2b0f67bbd8bcdd0fb774e8072bcec2255854e29c1904a9397ef8a659c98c9a357999f5a812fe978e3561f
7
- data.tar.gz: 40296c110b43d083fb2d34285fa9597aaa97ad5404ca86d7b888ac450e3c0d82632b5d118dfe18e50ddedc9f5a97794283180d09f8c90505a8c22e42e5893b81
6
+ metadata.gz: 904b87d477f8d7625357bd4c1df0eb943180d693668904cd50246826db17185e24b1a6a83a2e8cf77f1cdabbdbba7e892ed1eb8b5d4ca12e853f7da076630810
7
+ data.tar.gz: 74bd40a0f387b9105be03d3195d73d5899465e875bb25d81f23f09560652a0f61aa7b22b725125278776d8703aa8d5edd04a1e272fc23ac87f22574696aba35b
@@ -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'], 'star', 'private',
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'], 'star', 'private',
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'], 'star', 'private',
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.1.9
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: 2018-08-14 00:00:00.000000000 Z
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: wmwolf@asu.edu
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://wmwolf.github.io
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
- rubyforge_project:
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