coderunner 0.14.1 → 0.14.2
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/coderunner.gemspec +3 -3
- data/lib/coderunner/run.rb +11 -1
- 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: d44895db333f7366dcc410e57701657cd848fc17
|
4
|
+
data.tar.gz: d6579e206e7acf0e4e0c13bd2eabfbfce0fe334b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ade38537ee167adadda3bcad5ebe679f966fff3f2b3765dba38183040ab3fbd2bb9a98edc957556e4e6783f52aeab6911b14708bfe4b8201703aba73e7d04312
|
7
|
+
data.tar.gz: 0710bfb21a7dde09990800021a0df9f21075bb5ee2ec06fe0a8048fa09198d0f05ea2c7eb6a96c3671bc88411c15e5e4aa25ca8ed7b2bbf29dd1ade0c4518fc8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.14.
|
1
|
+
0.14.2
|
data/coderunner.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: coderunner 0.14.
|
5
|
+
# stub: coderunner 0.14.2 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "coderunner"
|
10
|
-
s.version = "0.14.
|
10
|
+
s.version = "0.14.2"
|
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"]
|
15
|
-
s.date = "2014-02-
|
15
|
+
s.date = "2014-02-06"
|
16
16
|
s.description = "CodeRunner is a framework for the automated running and analysis of simulations. It automatically generates any necessary input files, organises the output data and analyses it. Because it is a modular system, it can easily be customised to work with any system and any simulation code. One of its greatest strengths is that it is independent of any one simulation code; thus it can easily plot and compare the data from different codes."
|
17
17
|
s.email = "edmundhighcock@sourceforge.net"
|
18
18
|
s.executables = ["coderunner"]
|
data/lib/coderunner/run.rb
CHANGED
@@ -1042,16 +1042,26 @@ end
|
|
1042
1042
|
""
|
1043
1043
|
end
|
1044
1044
|
|
1045
|
+
# Prints a warning message, useful for pre-submit checks.
|
1045
1046
|
def warning(message)
|
1046
|
-
eputs "Warning: " + message; sleep 0.
|
1047
|
+
eputs "Warning: " + message; sleep 0.1
|
1047
1048
|
end
|
1048
1049
|
|
1049
1050
|
class SubmitError < StandardError
|
1050
1051
|
end
|
1051
1052
|
|
1053
|
+
# Prints an error message and raises a SubmitError, useful for pre-submit checks.
|
1052
1054
|
def error(message)
|
1053
1055
|
raise("Error: " + message)
|
1054
1056
|
end
|
1057
|
+
|
1058
|
+
# Returns the number of nodes times the number of cores, assuming the processor
|
1059
|
+
# layout is specified as either cores, nodesxcores, or nodesxcoresxthreads
|
1060
|
+
def actual_number_of_processors
|
1061
|
+
raise "Please specify the processor layout using the -n or (n:) option" unless @nprocs
|
1062
|
+
@nprocs.split('x').slice(0..1).map{|n| n.to_i}.inject(1){|ntot, n| ntot*n}
|
1063
|
+
end
|
1064
|
+
|
1055
1065
|
end
|
1056
1066
|
|
1057
1067
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coderunner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphkit
|