gryfxcrmod 0.1.9 → 0.1.10
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/VERSION +1 -1
- data/gryfxcrmod.gemspec +4 -4
- data/lib/gryfxcrmod/gryfx.rb +9 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69c84f64a5d074515f4393a796c79c3fefdb23b3
|
|
4
|
+
data.tar.gz: 36ac4d1d5e4224efc7af68ac191b5f91836ed67c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27138bebfdaa45012ec228aa16c9fae41063c5d6625d7bcb5e7e78bddf2edf9afb9304a5a9b4816634de3c2d910617038cb3bdca6f9cbc6287bb0ffe47124b22
|
|
7
|
+
data.tar.gz: 9d66d52602943407a118d9fbaad59bd49600f390b68a03195c13d6af385096f28cfb9cadbbdfcafd61187f89d49087e09a72b3ede1f8560df92aa62a28550b57
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.10
|
data/gryfxcrmod.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
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: gryfxcrmod 0.1.
|
|
5
|
+
# stub: gryfxcrmod 0.1.10 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "gryfxcrmod"
|
|
9
|
-
s.version = "0.1.
|
|
9
|
+
s.version = "0.1.10"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Edmund Highcock"]
|
|
14
|
-
s.date = "2015-
|
|
14
|
+
s.date = "2015-07-27"
|
|
15
15
|
s.description = "This is a customised subclass of the CodeRunner::Run class which allows CodeRunner to run and analyse the gyrofluid GPU turbulent transport solver Gryfx."
|
|
16
16
|
s.email = "edmundhighcock@users.sourceforge.net"
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
|
|
|
42
42
|
]
|
|
43
43
|
s.homepage = "http://github.com/edmundhighcock/gryfxcrmod"
|
|
44
44
|
s.licenses = ["MIT"]
|
|
45
|
-
s.rubygems_version = "2.
|
|
45
|
+
s.rubygems_version = "2.4.8"
|
|
46
46
|
s.summary = "CodeRunner module for the Gryfx Gyrofluid Transport Solver"
|
|
47
47
|
|
|
48
48
|
if s.respond_to? :specification_version then
|
data/lib/gryfxcrmod/gryfx.rb
CHANGED
|
@@ -67,6 +67,15 @@ class CodeRunner
|
|
|
67
67
|
|
|
68
68
|
# This is a hook which gets called just before submitting a simulation. It sets up the folder and generates any necessary input files.
|
|
69
69
|
def generate_input_file
|
|
70
|
+
if @restart_id and (not @is_a_restart or @resubmit_id)
|
|
71
|
+
@runner.run_list[@restart_id].restart(self)
|
|
72
|
+
elsif ((@save_for_restart and @save_for_restart.fortran_true?) or
|
|
73
|
+
(@save_for_restart_new and @save_for_restart_new.fortran_true?)) and
|
|
74
|
+
(not @is_a_restart or @resubmit_id)
|
|
75
|
+
@restart_dir = "nc"
|
|
76
|
+
FileUtils.makedirs @restart_dir
|
|
77
|
+
@restart_file = "#@run_name.nc"
|
|
78
|
+
end
|
|
70
79
|
write_input_file
|
|
71
80
|
end
|
|
72
81
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gryfxcrmod
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Edmund Highcock
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-07-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: coderunner
|
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
143
143
|
version: '0'
|
|
144
144
|
requirements: []
|
|
145
145
|
rubyforge_project:
|
|
146
|
-
rubygems_version: 2.
|
|
146
|
+
rubygems_version: 2.4.8
|
|
147
147
|
signing_key:
|
|
148
148
|
specification_version: 4
|
|
149
149
|
summary: CodeRunner module for the Gryfx Gyrofluid Transport Solver
|