coderunner 1.0.6 → 1.0.7

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: 0fb8175469f55b11e361a5de140011eb51c7fd0a
4
- data.tar.gz: 79a18f055b336c0aa8e94ead6b065ed5afeea159
3
+ metadata.gz: a5dbf6befccd914ea37b578b5f5b4cf9c8ed1e32
4
+ data.tar.gz: 5846f81139a319f8417bd11740ab6fe9b8ddd9e2
5
5
  SHA512:
6
- metadata.gz: 77a0686cdea45c09e5bdca3f7b7c62b0fc83d1041b00f4ad2cf8d2cb9aef7a94881487b9b5db04fe6b480385a8aba99a5f9a98cb291e34ded1599686edd015ef
7
- data.tar.gz: 22276766c837155895885ca14a1626c50a07a070d411b07889f193b501f7bd3bf0ec2d93d5f4fc2d7727f3950b17f10866b9d5e1266e03f07032171f5a272228
6
+ metadata.gz: 5eab852db844d5a12c6774cb944da27959d30856e1b2eaafd865dbb4ed4b5786253c62586884b13d7a2498c9e99652a4a9c7b86606405b7bc61be62b8d1938d0
7
+ data.tar.gz: 959692714af8531c31082c553de6343232c0d2ca0688b0ba0b66c26c8bdb4d74ead419cbb2e64f919df0ea25834429c5bdda0ec2a9dbb89f1390ad971b5430af
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.7
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 1.0.6 ruby lib
5
+ # stub: coderunner 1.0.7 ruby lib
6
6
  # stub: ext/extconf.rb
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = "coderunner".freeze
10
- s.version = "1.0.6"
10
+ s.version = "1.0.7"
11
11
 
12
12
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
13
13
  s.require_paths = ["lib".freeze]
14
14
  s.authors = ["Edmund Highcock".freeze]
15
- s.date = "2016-12-16"
15
+ s.date = "2017-01-10"
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.".freeze
17
17
  s.email = "edmundhighcock@users.sourceforge.net".freeze
18
18
  s.executables = ["coderunner".freeze, "coderunnerrepo".freeze]
@@ -9,5 +9,30 @@ class CodeRunner
9
9
  def max_ppn
10
10
  36
11
11
  end
12
+ def batch_script
13
+ ppn_checks
14
+ hours, mins, secs = hours_minutes_seconds
15
+ <<EOF
16
+ #!/bin/bash --login
17
+ #PBS -N #{executable_name}.#{job_identifier}
18
+ #PBS -l ncpus=#{nprocstot}
19
+ #PBS -l mpiprocs=#{nprocstot}
20
+ #PBS -l select=#{nodes}
21
+ #PBS -l walltime=#{sprintf("%02d:%02d:%02d", hours, mins, secs)}
22
+ #{@project ? "#PBS -A #@project" : ""}
23
+ #{@queue ? "#PBS -q #@queue" : ""}
24
+
25
+ #{code_run_environment}
26
+
27
+ ### start of jobscript
28
+ cd $PBS_O_WORKDIR
29
+ echo "workdir: $PBS_O_WORKDIR"
30
+
31
+ echo "Submitting #{nodes}x#{ppn} job on #{CodeRunner::SYS} for project #@project..."
32
+ EOF
33
+ end
34
+ def mpi_prog
35
+ "mpirun -np #{nprocstot}"
36
+ end
12
37
  end
13
38
  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: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-16 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphkit