coderunner 0.15.12 → 0.15.13

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: d2978c40385db27d78718304136bce84f6fd4816
4
- data.tar.gz: 2bb7c2c495b6c73800944cbe4db67676af95241c
3
+ metadata.gz: bdaa33a0e55c8b08f7a428e1437ff88bbfb2098d
4
+ data.tar.gz: 93fb05648880a150f5bbc3bce9713c64dd97d803
5
5
  SHA512:
6
- metadata.gz: a643a60a5a228eb4365d20120e29901ec746345f7afe2317f1b0cbfe16aa97a7903ad87c1793509f6ac25394b924bb732ce87e1b2701b7ceced3cf94013d8d9b
7
- data.tar.gz: 01f80f29a2c1a1f48178c9911fbdb696b082e2095fab1e8b151e503bb4a6959627ba921f52a5dec9761868f2a2cb5efc22040dc01b95b894a24631ab6b2e0c26
6
+ metadata.gz: 67d87ac7d6d8793c7dc3ab8deaa3dcb4de405f4cc0388fd625c93c66681e7bf0775664504f1a6f217078cbb6f1cc21603bd457ee6044fab4a5e6063042da7f7d
7
+ data.tar.gz: 981c6767312f1ed06f6d555a5ef5c74da9cf77a15b6346363593d8d9b51d306e69b712c49ccea4832d548e3d9be8f96c0d5d03823d4e4150a1b56d6f23660626
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.15.12
1
+ 0.15.13
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.15.12 ruby lib
5
+ # stub: coderunner 0.15.13 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.12"
10
+ s.version = "0.15.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"]
15
- s.date = "2015-04-08"
15
+ s.date = "2015-04-09"
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"]
@@ -2,10 +2,6 @@ class CodeRunner
2
2
  require SCRIPT_FOLDER + '/system_modules/slurm.rb'
3
3
  module Helios
4
4
  include Slurm
5
- #def batch_script
6
- #raise "Please specify project" unless @project
7
- #super
8
- #end
9
5
  def max_ppn
10
6
  16
11
7
  end
@@ -14,13 +10,12 @@ class CodeRunner
14
10
  nprocstot = nodes.to_i * ppn.to_i
15
11
  "srun -n #{nprocstot}"
16
12
  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
13
+ def run_command
14
+ if use_launcher
15
+ return %[#{code_run_environment}\n #@preamble #{mpi_prog} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
16
+ else
17
+ "#@preamble #{mpi_prog} #{executable_location}/#{executable_name} #{parameter_string}"
18
+ end
19
+ end
25
20
  end
26
21
  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.15.12
4
+ version: 0.15.13
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-04-08 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphkit