coderunner 1.0.10 → 1.0.11

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: e0b445613262ed7c7fee9a6e8c0f4ed08b30b4bd
4
- data.tar.gz: 5fb5203798cfa9f2732e9e1f85b1579cd7adc917
3
+ metadata.gz: 7efe9db90ab3c2addc215e3c05f683539b032164
4
+ data.tar.gz: a743bf0b621c725aa6f1446dac7e5a482c5b107d
5
5
  SHA512:
6
- metadata.gz: 7b6e22cab3a4e93afcea7bf3c8e61e1cfadf0074127a1261bbbc052c08fd5fb1eb5334766e3a0b4c057b4fa6ec727d9e33454945e57b47edbfe21801044f730e
7
- data.tar.gz: b9566ed9862fa5083e4bb154d6b67284dd06e9cb49b4daee39860b61221312418bde205fb152af57d5b8ab9b829de4739567eac00605b354e6b6af55b052e0e9
6
+ metadata.gz: 75cea1b6e8a13dfae663ba2700af11ef86baf355cd0732e68c89f8ddecceac7157aa075ee0633ad121f6ab154c77e4ee409b84555a06a413f7d7bffbb92daac2
7
+ data.tar.gz: 5280776232d68f28c230e4e9081584d5980a30136207a3caa2ae2a682d8ea6e936c4686071d2f6f964fdb7e38c7203f2de70e5d8efc9c5bb9be8b7747fd553fc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.10
1
+ 1.0.11
@@ -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.10 ruby lib
5
+ # stub: coderunner 1.0.11 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.10"
10
+ s.version = "1.0.11"
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 = "2017-04-27"
15
+ s.date = "2018-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.".freeze
17
17
  s.email = "edmundhighcock@users.sourceforge.net".freeze
18
18
  s.executables = ["coderunner".freeze, "coderunnerrepo".freeze]
@@ -1,36 +1,25 @@
1
1
  class CodeRunner
2
- require SCRIPT_FOLDER + '/system_modules/moab.rb'
2
+ require SCRIPT_FOLDER + '/system_modules/slurm.rb'
3
3
  module Marconi
4
- include Moab
5
- def batch_script
6
- raise "Please specify project" unless @project
7
- super
8
- end
4
+ include Slurm
5
+ #def batch_script
6
+ #raise "Please specify project" unless @project
7
+ #super
8
+ #end
9
9
  def max_ppn
10
- 36
10
+ 48
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 select=#{nodes}:ncpus=#{ppn}:mpiprocs=#{ppn}
19
- #PBS -l walltime=#{sprintf("%02d:%02d:%02d", hours, mins, secs)}
20
- #{@project ? "#PBS -A #@project" : ""}
21
- #{@queue ? "#PBS -q #@queue" : ""}
22
-
23
- #{code_run_environment}
24
-
25
- ### start of jobscript
26
- cd $PBS_O_WORKDIR
27
- echo "workdir: $PBS_O_WORKDIR"
28
-
29
- echo "Submitting #{nodes}x#{ppn} job on #{CodeRunner::SYS} for project #@project..."
30
- EOF
31
- end
32
- def mpi_prog
33
- "mpirun -np #{nprocstot}"
34
- end
12
+ def run_command
13
+ # "qsub #{batch_script_file}"
14
+ if use_launcher
15
+ return %[#{code_run_environment}\n ibrun -n #{@nprocs} -o 0 #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
16
+ else
17
+ "srun #{executable_location}/#{executable_name} #{parameter_string}"
18
+ end
19
+ end
20
+ def batch_script
21
+ raise "Please specify the queue to submit to using the -Q (or Q:) flag" unless @queue
22
+ super
23
+ end
35
24
  end
36
25
  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.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphkit