gs2crmod 0.12.12 → 0.12.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/gs2crmod.gemspec +3 -3
- data/lib/gs2crmod/gs2.rb +11 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8df0c55ed5886ea126f08e7e0b07725491c53bd1
|
4
|
+
data.tar.gz: 4e8c40aaa021202689272eecd270d3f7e2f893ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51b6d47b7c6706bacf784b1f125c3a121efa8ccbb813cf3621a04ee9fc513238185864b624230c59251d53633fd0ad3b89ed3e3649a74f59aa0a23f221518746
|
7
|
+
data.tar.gz: 23aa866d0f8e5cf457eab99f247c5862694393fedace72252e1d3f2f5b47adf66967af225f08e087a2fa968a1581fb285aeffe7612c8682fa6a79316f3a8df73
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.13
|
data/gs2crmod.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: gs2crmod 0.12.
|
5
|
+
# stub: gs2crmod 0.12.13 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "gs2crmod"
|
10
|
-
s.version = "0.12.
|
10
|
+
s.version = "0.12.13"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
14
14
|
s.authors = ["Edmund Highcock", "Ferdinand van Wyk"]
|
15
|
-
s.date = "2015-11-
|
15
|
+
s.date = "2015-11-06"
|
16
16
|
s.description = "GS2 is a gyrokinetic flux tube initial value turbulence code which can be used for fusion or astrophysical plasmas. CodeRunner is a framework for the automated running and analysis of large simulations. This module allows GS2 (and its sister code AstroGK) to harness the power of the CodeRunner framework."
|
17
17
|
s.email = "edmundhighcock@sourceforge.net"
|
18
18
|
s.extensions = ["ext/extconf.rb"]
|
data/lib/gs2crmod/gs2.rb
CHANGED
@@ -1259,15 +1259,19 @@ folder = File.dirname(File.expand_path(__FILE__)) # i.e. the directory this file
|
|
1259
1259
|
end
|
1260
1260
|
end
|
1261
1261
|
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1262
|
+
begin
|
1263
|
+
# Change names for GS2 restart files
|
1264
|
+
Dir.chdir(@directory + '/' + @restart_dir) do
|
1265
|
+
dir_entries = Dir.entries()
|
1266
|
+
dir_entries.each do |f|
|
1267
|
+
if f.include? 'v_'
|
1268
|
+
new_name = f.sub "id_#{@id}", "id_#{new_id}"
|
1269
|
+
`mv "#{f}" "#{new_name}"`
|
1270
|
+
end
|
1269
1271
|
end
|
1270
1272
|
end
|
1273
|
+
rescue
|
1274
|
+
eputs 'No restart files detected. Skipping...'
|
1271
1275
|
end
|
1272
1276
|
|
1273
1277
|
new_run_dir = @directory.sub "id_#{@id}", "id_#{new_id}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gs2crmod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coderunner
|