coderunner 0.15.7 → 0.15.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea54354556be9175b726b64ed64bf0a5ab260bdd
4
- data.tar.gz: b4b4415d6868b5a890324b2799f50b4f77173f91
3
+ metadata.gz: 3b40b38fcea184d29203d2d101ceb480eacf1d6b
4
+ data.tar.gz: 0e0f3a66735a746b44b3973f494496e4f25fe2f3
5
5
  SHA512:
6
- metadata.gz: b0d6b8eca0bcf89e2158a4153a7b4488ea881eb81b904d04562fcaa3e9bb2fa70439ecf6f01999d1d4610df54fe112ad8a47fe6430b8654d409840d50b5d8e8a
7
- data.tar.gz: c2ceca5b591a600e1d8bb9be0303af19720332689550ba85fc28148110917b923436c6627bf183014613bdbc3a8757b6b2d79f80e240bc9e2adf30bd065e57df
6
+ metadata.gz: 901df6eacfbbefd640e79d8204ac4688a0aa1d1c1fcc8dc816c30fb2f2909a917077326c4a0682d45eb76983378f7f9e763bdd34e702245215f339b18983f57d
7
+ data.tar.gz: 678cfd6ae0a6d206f1a214eeec5626e02988ba6e1d2d70739e1fdc638b60099cf0c43752a15b27389733a28c210b92f9aae62a1d211d1e87595bb6737826b869
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.15.7
1
+ 0.15.8
@@ -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.15.7 ruby lib
5
+ # stub: coderunner 0.15.8 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.15.7"
10
+ s.version = "0.15.8"
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 = "2015-02-20"
15
+ s.date = "2015-04-02"
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"]
@@ -9,5 +9,18 @@ class CodeRunner
9
9
  def max_ppn
10
10
  16
11
11
  end
12
+ def mpi_prog
13
+ nodes, ppn = @nprocs.split(/x/)
14
+ nprocstot = nodes.to_i * ppn.to_i
15
+ "srun -n #{nprocstot}"
16
+ end
17
+ def run_command
18
+ # "qsub #{batch_script_file}"
19
+ if (ENV['CODE_RUNNER_LAUNCHER'].size > 0 rescue false)
20
+ return %[#@preamble #{mpi_prog} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
21
+ else
22
+ "#@preamble #{mpi_prog} #{executable_location}/#{executable_name} #{parameter_string}"
23
+ end
24
+ end
12
25
  end
13
26
  end
@@ -17,11 +17,14 @@ module Slurm
17
17
  if (ENV['CODE_RUNNER_LAUNCHER'].size > 0 rescue false)
18
18
  return %[mpiexec -np #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
19
19
  else
20
- nodes, ppn = @nprocs.split(/x/)
21
- nprocstot = nodes.to_i * ppn.to_i
22
- "#@preamble mpirun -np #{nprocstot} #{executable_location}/#{executable_name} #{parameter_string}"
20
+ "#@preamble #{mpi_prog} #{executable_location}/#{executable_name} #{parameter_string}"
23
21
  end
24
22
  end
23
+ def mpi_prog
24
+ nodes, ppn = @nprocs.split(/x/)
25
+ nprocstot = nodes.to_i * ppn.to_i
26
+ "mpirun -np #{nprocstot}"
27
+ end
25
28
 
26
29
  def execute
27
30
  if ((prefix = ENV['CODE_RUNNER_LAUNCHER']).size > 0 rescue false)
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.15.7
4
+ version: 0.15.8
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-02-20 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphkit