gs2crmod 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.1
1
+ 0.11.2
data/gs2crmod.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gs2crmod"
8
- s.version = "0.11.1"
8
+ s.version = "0.11.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Edmund Highcock", "Ferdinand van Wyk"]
data/lib/gs2crmod/gs2.rb CHANGED
@@ -1023,7 +1023,7 @@ def run_heuristic_analysis
1023
1023
  make_info_file(input_file, false)
1024
1024
  end
1025
1025
 
1026
- @source_code_subfolders = ['utils', 'geo']
1026
+ @source_code_subfolders = ['utils', 'geo', 'diagnostics']
1027
1027
 
1028
1028
  attr_accessor :iphi00, :saturation_time #Necessary for back. comp. due to an old bug
1029
1029
 
@@ -5657,6 +5657,111 @@
5657
5657
  :help=>
5658
5658
  "Diagnostic: when true print the energy grid and generalised temperature.",
5659
5659
  :code_name=>:print_egrid,
5660
+ :must_pass=>
5661
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
5662
+ :explanation=>
5663
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
5664
+ :type=>:Fortran_Bool}}},
5665
+ :diagnostics_config=>
5666
+ {:help=>
5667
+ "This namelists controls the behaviour of the new diagnostics module (which can be enabled by setting USE_NEW_DIAG=on).",
5668
+ :description=>"Options for the new diagnostics module",
5669
+ :should_include=>"true",
5670
+ :variables=>
5671
+ {:nwrite=>
5672
+ {:should_include=>"true",
5673
+ :description=>
5674
+ "Diagnostic quantities are written every nwrite timesteps.",
5675
+ :help=>"Diagnostic quantities are written every nwrite timesteps.",
5676
+ :code_name=>:nwrite,
5677
+ :must_pass=>
5678
+ [{:test=>"kind_of? Integer",
5679
+ :explanation=>"This variable must be an integer."}],
5680
+ :type=>:Integer},
5681
+ :write_any=>
5682
+ {:should_include=>"true",
5683
+ :description=>"If .false. disables the new diagnostics module.",
5684
+ :help=>
5685
+ "If .false. disables the new diagnostics module. No output is written.",
5686
+ :code_name=>:write_any,
5687
+ :must_pass=>
5688
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
5689
+ :explanation=>
5690
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
5691
+ :type=>:Fortran_Bool},
5692
+ :write_fields=>
5693
+ {:should_include=>"true",
5694
+ :description=>
5695
+ "If .true. write out values of phi, apar and bpar at the current time, as well as integrated quantities as a function of time.",
5696
+ :help=>"If .true. write out values of phi, apar and bpar.",
5697
+ :code_name=>:write_fields,
5698
+ :must_pass=>
5699
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
5700
+ :explanation=>
5701
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
5702
+ :type=>:Fortran_Bool},
5703
+ :write_phi_over_time=>
5704
+ {:should_include=>"true",
5705
+ :description=>"Write entire phi field to NetCDF file every nwrite.",
5706
+ :help=>
5707
+ "If this variable is set to true then the entire field phi will be written to the NetCDF file every nwrite. Useful for making films. This can cause the NetCDF file to be huge, if resolution is large or nwrite is small.",
5708
+ :code_name=>:write_phi_over_time,
5709
+ :must_pass=>
5710
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
5711
+ :explanation=>
5712
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
5713
+ :type=>:Fortran_Bool},
5714
+ :write_apar_over_time=>
5715
+ {:should_include=>"true",
5716
+ :description=>"",
5717
+ :help=>
5718
+ "If this variable is set to true then the entire field apar will be written to the NetCDF file every nwrite. Useful for making films. This can cause the NetCDF file to be huge, if resolution is large or nwrite is small.",
5719
+ :code_name=>:write_apar_over_time,
5720
+ :must_pass=>
5721
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
5722
+ :explanation=>
5723
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
5724
+ :type=>:Fortran_Bool},
5725
+ :write_bpar_over_time=>
5726
+ {:should_include=>"true",
5727
+ :description=>"Write entire bpar field to NetCDF file every nwrite.",
5728
+ :help=>
5729
+ "If this variable is set to true then the entire field bpar will be written to the NetCDF file every nwrite. Useful for making films. This can cause the NetCDF file to be huge, if resolution is large or nwrite is small.",
5730
+ :code_name=>:write_bpar_over_time,
5731
+ :must_pass=>
5732
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
5733
+ :explanation=>
5734
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
5735
+ :type=>:Fortran_Bool},
5736
+ :write_fluxes=>
5737
+ {:should_include=>"true",
5738
+ :description=>"If .true. write fluxes of heat, momentum & particles.",
5739
+ :help=>
5740
+ "If .true. write fluxes of heat, momentum & particles to the new netcdf file.",
5741
+ :code_name=>:write_fluxes,
5742
+ :must_pass=>
5743
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
5744
+ :explanation=>
5745
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
5746
+ :type=>:Fortran_Bool},
5747
+ :write_fluxes_by_mode=>
5748
+ {:should_include=>"true",
5749
+ :description=>
5750
+ "If .true., write fluxes as a function of ky, kx, species and time.",
5751
+ :help=>
5752
+ "If .true., write fluxes as a function of ky, kx, species and time (otherwise they will only be written out as functions of species, time and kx or ky).",
5753
+ :code_name=>:write_fluxes_by_mode,
5754
+ :must_pass=>
5755
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
5756
+ :explanation=>
5757
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
5758
+ :type=>:Fortran_Bool},
5759
+ :write_omega=>
5760
+ {:should_include=>"true",
5761
+ :description=>"Write growth rates and frequencies to the netcdf file",
5762
+ :help=>
5763
+ "If true writes omega (both growth rate and frequency) to netcdf file every nwrite timesteps.\n**Also writes out omegaavg (omega averaged over navg steps) to netcdf file is.",
5764
+ :code_name=>:write_omega,
5660
5765
  :must_pass=>
5661
5766
  [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
5662
5767
  :explanation=>
@@ -1,7 +1,7 @@
1
1
  require 'helper'
2
2
  CodeRunner.setup_run_class('gs2')
3
3
 
4
- raise "curl failed" unless system %[curl 'http://sourceforge.net/apps/mediawiki/gyrokinetics/index.php?title=GS2_Input_Parameters&action=edit' | sed 's/&amp;/\&/g' | sed 's/&quot;/"/g' | sed 's/&gt;/>/g' | sed 's/&lt;/</g' | sed 's/&nbsp;/ /g' > gs2_mediawiki.txt]
4
+ raise "curl failed" unless system %[curl 'http://sourceforge.net/apps/mediawiki/gyrokinetics/index.php?title=GS2_Input_Parameters&action=edit' | sed 's/&amp;/\\&/g' | sed 's/&quot;/"/g' | sed 's/&gt;/>/g' | sed 's/&lt;/</g' | sed 's/&nbsp;/ /g' > gs2_mediawiki.txt]
5
5
  CodeRunner::Gs2.read_mediawiki_documentation('gs2_mediawiki.txt')
6
6
  CodeRunner::Gs2.write_mediawiki_documentation('gs2_mediawiki2.txt')
7
7
  system 'kwrite gs2_mediawiki2.txt' or system '/Applications/TextEdit.app/Contents/MacOS/TextEdit gs2_mediawiki2.txt'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gs2crmod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: