gs2crmod 0.12.12 → 0.12.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61537cc35dd202107beff6badd6a604b13052f65
4
- data.tar.gz: 7c55bbdc2056518ba85a929c2e097f4f71b79ceb
3
+ metadata.gz: 8df0c55ed5886ea126f08e7e0b07725491c53bd1
4
+ data.tar.gz: 4e8c40aaa021202689272eecd270d3f7e2f893ee
5
5
  SHA512:
6
- metadata.gz: c595a7a35633a1b63b897760c2839e2c65b601efadf53af5112f6129530282c0c11f6eb918d427649ace1ce3bbea63ee6c0c9c0f6459459a1344706038223710
7
- data.tar.gz: 246a78bc1351ba02fc936109ef48a7fb8c381c96248a7e891e742db6457ac971b096593d22f327ace84e844bc50af1aacc36574b4d30b0593ad8d7461c373aa9
6
+ metadata.gz: 51b6d47b7c6706bacf784b1f125c3a121efa8ccbb813cf3621a04ee9fc513238185864b624230c59251d53633fd0ad3b89ed3e3649a74f59aa0a23f221518746
7
+ data.tar.gz: 23aa866d0f8e5cf457eab99f247c5862694393fedace72252e1d3f2f5b47adf66967af225f08e087a2fa968a1581fb285aeffe7612c8682fa6a79316f3a8df73
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.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.12 ruby lib
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.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-05"
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
- # Change names for GS2 restart files
1263
- Dir.chdir(@directory + '/' + @restart_dir) do
1264
- dir_entries = Dir.entries()
1265
- dir_entries.each do |f|
1266
- if f.include? 'v_'
1267
- new_name = f.sub "id_#{@id}", "id_#{new_id}"
1268
- `mv "#{f}" "#{new_name}"`
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.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-05 00:00:00.000000000 Z
12
+ date: 2015-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coderunner