gryfxcrmod 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/gryfxcrmod.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gryfxcrmod"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.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"]
12
- s.date = "2013-08-19"
12
+ s.date = "2013-08-23"
13
13
  s.description = "This is a customised subclass of the CodeRunner::Run class which allows CodeRunner to run and analyse the gyrofluid GPU turbulent transport solver Gryfx."
14
14
  s.email = "edmundhighcock@users.sourceforge.net"
15
15
  s.extra_rdoc_files = [
@@ -250,4 +250,152 @@
250
250
  :must_pass=>
251
251
  [{:test=>"kind_of? Integer",
252
252
  :explanation=>"This variable must be an integer."}],
253
- :type=>:Integer}}
253
+ :type=>:Integer},
254
+ :equilibrium_type=>
255
+ {:should_include=>"true",
256
+ :description=>
257
+ "Choice of equilbrium, can be \"miller\", \"chease\", or \"salpha\".",
258
+ :help=>
259
+ "Choice of equilbrium, can be \"miller\", \"chease\", or \"salpha\".",
260
+ :code_name=>:equilibrium_type,
261
+ :must_pass=>
262
+ [{:test=>"kind_of? String",
263
+ :explanation=>"This variable must be a string."}],
264
+ :type=>:String},
265
+ :smagorinsky=>
266
+ {:should_include=>"true",
267
+ :description=>"",
268
+ :help=>"",
269
+ :code_name=>:smagorinsky,
270
+ :must_pass=>
271
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
272
+ :explanation=>
273
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
274
+ :type=>:Fortran_Bool},
275
+ :s_alpha=>
276
+ {:should_include=>"true",
277
+ :description=>nil,
278
+ :help=>"Use s_alpha geometry if \"on\". ",
279
+ :code_name=>:s_alpha,
280
+ :must_pass=>
281
+ [{:test=>"kind_of? String",
282
+ :explanation=>"This variable must be a string."}],
283
+ :type=>:String,
284
+ :autoscanned_defaults=>["on"]},
285
+ :zero_restart_avg=>
286
+ {:should_include=>"true",
287
+ :description=>nil,
288
+ :help=>nil,
289
+ :code_name=>:zero_restart_avg,
290
+ :must_pass=>
291
+ [{:test=>"kind_of? String",
292
+ :explanation=>"This variable must be a string."}],
293
+ :type=>:String,
294
+ :autoscanned_defaults=>["off"]},
295
+ :no_zderiv_covering=>
296
+ {:should_include=>"true",
297
+ :description=>nil,
298
+ :help=>nil,
299
+ :code_name=>:no_zderiv_covering,
300
+ :must_pass=>
301
+ [{:test=>"kind_of? String",
302
+ :explanation=>"This variable must be a string."}],
303
+ :type=>:String,
304
+ :autoscanned_defaults=>["off"]},
305
+ :no_omegad=>
306
+ {:should_include=>"true",
307
+ :description=>"",
308
+ :help=>"",
309
+ :code_name=>:no_omegad,
310
+ :must_pass=>
311
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
312
+ :explanation=>
313
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
314
+ :type=>:Fortran_Bool},
315
+ :const_curv=>
316
+ {:should_include=>"true",
317
+ :description=>"",
318
+ :help=>"",
319
+ :code_name=>:const_curv,
320
+ :must_pass=>
321
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
322
+ :explanation=>
323
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
324
+ :type=>:Fortran_Bool},
325
+ :varenna=>
326
+ {:should_include=>"true",
327
+ :description=>"",
328
+ :help=>"",
329
+ :code_name=>:varenna,
330
+ :must_pass=>
331
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
332
+ :explanation=>
333
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
334
+ :type=>:Fortran_Bool},
335
+ :nlpm=>
336
+ {:should_include=>"true",
337
+ :description=>"",
338
+ :help=>"",
339
+ :code_name=>:nlpm,
340
+ :must_pass=>
341
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
342
+ :explanation=>
343
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
344
+ :type=>:Fortran_Bool},
345
+ :hyper=>
346
+ {:should_include=>"true",
347
+ :description=>nil,
348
+ :help=>nil,
349
+ :code_name=>:hyper,
350
+ :must_pass=>
351
+ [{:test=>"kind_of? String",
352
+ :explanation=>"This variable must be a string."}],
353
+ :type=>:String,
354
+ :autoscanned_defaults=>["off"]},
355
+ :debug=>
356
+ {:should_include=>"true",
357
+ :description=>"",
358
+ :help=>"",
359
+ :code_name=>:debug,
360
+ :must_pass=>
361
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
362
+ :explanation=>
363
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
364
+ :type=>:Fortran_Bool},
365
+ :fluxfile=>
366
+ {:should_include=>"true",
367
+ :description=>"",
368
+ :help=>"",
369
+ :code_name=>:fluxfile,
370
+ :must_pass=>
371
+ [{:test=>"kind_of? String",
372
+ :explanation=>"This variable must be a string."}],
373
+ :type=>:String},
374
+ :stopfile=>
375
+ {:should_include=>"true",
376
+ :description=>"",
377
+ :help=>"",
378
+ :code_name=>:stopfile,
379
+ :must_pass=>
380
+ [{:test=>"kind_of? String",
381
+ :explanation=>"This variable must be a string."}],
382
+ :type=>:String},
383
+ :restartfile=>
384
+ {:should_include=>"true",
385
+ :description=>"",
386
+ :help=>"",
387
+ :code_name=>:restartfile,
388
+ :must_pass=>
389
+ [{:test=>"kind_of? String",
390
+ :explanation=>"This variable must be a string."}],
391
+ :type=>:String},
392
+ :write_phi=>
393
+ {:should_include=>"true",
394
+ :description=>nil,
395
+ :help=>nil,
396
+ :code_name=>:write_phi,
397
+ :must_pass=>
398
+ [{:test=>"kind_of? String",
399
+ :explanation=>"This variable must be a string."}],
400
+ :type=>:String,
401
+ :autoscanned_defaults=>["on"]}}
@@ -185,7 +185,18 @@
185
185
  [{:test=>"kind_of? Numeric",
186
186
  :explanation=>
187
187
  "This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
188
- :type=>:Float}}},
188
+ :type=>:Float},
189
+ :zp=>
190
+ {:should_include=>"true",
191
+ :description=>
192
+ "No. of 2 pi segments in z/theta. Overrides nperiod if set.",
193
+ :help=>
194
+ "Number of 2 pi segments in the z/theta direction. Overrides nperiod if set. Otherwise set to 2*nperiod-1.",
195
+ :code_name=>:zp,
196
+ :must_pass=>
197
+ [{:test=>"kind_of? Integer",
198
+ :explanation=>"This variable must be an integer."}],
199
+ :type=>:Integer}}},
189
200
  :kt_grids_box_parameters=>
190
201
  {:description=>"",
191
202
  :should_include=>"true",
@@ -263,7 +274,21 @@
263
274
  :explanation=>"This variable must be an integer."}],
264
275
  :type=>:Integer,
265
276
  :autoscanned_defaults=>[0]}}},
266
- :parameters=>{:description=>"", :should_include=>"true", :variables=>{}},
277
+ :parameters=>
278
+ {:description=>"",
279
+ :should_include=>"true",
280
+ :variables=>
281
+ {:tite=>
282
+ {:should_include=>"true",
283
+ :description=>"Ratio of ion to electron temperatures.",
284
+ :help=>
285
+ "Ratio of ion to electron temperatures. This parameter is used only when there is no species called \"electron\" included.",
286
+ :code_name=>:tite,
287
+ :must_pass=>
288
+ [{:test=>"kind_of? Numeric",
289
+ :explanation=>
290
+ "This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
291
+ :type=>:Float}}},
267
292
  :nonlinear_terms_knobs=>
268
293
  {:description=>"",
269
294
  :should_include=>"true",
@@ -510,67 +535,6 @@
510
535
  :explanation=>"This variable must be a string."}],
511
536
  :type=>:String,
512
537
  :autoscanned_defaults=>["off"]},
513
- :zero_restart_avg=>
514
- {:should_include=>"true",
515
- :description=>nil,
516
- :help=>nil,
517
- :code_name=>:zero_restart_avg,
518
- :must_pass=>
519
- [{:test=>"kind_of? String",
520
- :explanation=>"This variable must be a string."}],
521
- :type=>:String,
522
- :autoscanned_defaults=>["off"]},
523
- :no_zderiv_covering=>
524
- {:should_include=>"true",
525
- :description=>nil,
526
- :help=>nil,
527
- :code_name=>:no_zderiv_covering,
528
- :must_pass=>
529
- [{:test=>"kind_of? String",
530
- :explanation=>"This variable must be a string."}],
531
- :type=>:String,
532
- :autoscanned_defaults=>["off"]},
533
- :no_omegad=>
534
- {:should_include=>"true",
535
- :description=>nil,
536
- :help=>nil,
537
- :code_name=>:no_omegad,
538
- :must_pass=>
539
- [{:test=>"kind_of? String",
540
- :explanation=>"This variable must be a string."}],
541
- :type=>:String,
542
- :autoscanned_defaults=>["off"]},
543
- :const_curv=>
544
- {:should_include=>"true",
545
- :description=>nil,
546
- :help=>nil,
547
- :code_name=>:const_curv,
548
- :must_pass=>
549
- [{:test=>"kind_of? String",
550
- :explanation=>"This variable must be a string."}],
551
- :type=>:String,
552
- :autoscanned_defaults=>["off"]},
553
- :varenna=>
554
- {:should_include=>"true",
555
- :description=>"",
556
- :help=>
557
- "If \"on\", use the closure from the Beer et. al. Varenna paper.",
558
- :code_name=>:varenna,
559
- :must_pass=>
560
- [{:test=>"kind_of? String",
561
- :explanation=>"This variable must be a string."}],
562
- :type=>:String,
563
- :autoscanned_defaults=>["off"]},
564
- :nlpm=>
565
- {:should_include=>"true",
566
- :description=>nil,
567
- :help=>nil,
568
- :code_name=>:nlpm,
569
- :must_pass=>
570
- [{:test=>"kind_of? String",
571
- :explanation=>"This variable must be a string."}],
572
- :type=>:String,
573
- :autoscanned_defaults=>["off"]},
574
538
  :inlpm=>
575
539
  {:should_include=>"true",
576
540
  :description=>nil,
@@ -592,26 +556,6 @@
592
556
  "This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
593
557
  :type=>:Float,
594
558
  :autoscanned_defaults=>[1.0]},
595
- :smagorinsky=>
596
- {:should_include=>"true",
597
- :description=>nil,
598
- :help=>nil,
599
- :code_name=>:smagorinsky,
600
- :must_pass=>
601
- [{:test=>"kind_of? String",
602
- :explanation=>"This variable must be a string."}],
603
- :type=>:String,
604
- :autoscanned_defaults=>["off"]},
605
- :hyper=>
606
- {:should_include=>"true",
607
- :description=>nil,
608
- :help=>nil,
609
- :code_name=>:hyper,
610
- :must_pass=>
611
- [{:test=>"kind_of? String",
612
- :explanation=>"This variable must be a string."}],
613
- :type=>:String,
614
- :autoscanned_defaults=>["off"]},
615
559
  :nu_hyper=>
616
560
  {:should_include=>"true",
617
561
  :description=>nil,
@@ -633,26 +577,6 @@
633
577
  :explanation=>"This variable must be an integer."}],
634
578
  :type=>:Integer,
635
579
  :autoscanned_defaults=>[2]},
636
- :debug=>
637
- {:should_include=>"true",
638
- :description=>nil,
639
- :help=>nil,
640
- :code_name=>:debug,
641
- :must_pass=>
642
- [{:test=>"kind_of? String",
643
- :explanation=>"This variable must be a string."}],
644
- :type=>:String,
645
- :autoscanned_defaults=>["on"]},
646
- :s_alpha=>
647
- {:should_include=>"true",
648
- :description=>nil,
649
- :help=>"Use s_alpha geometry if \"on\". ",
650
- :code_name=>:s_alpha,
651
- :must_pass=>
652
- [{:test=>"kind_of? String",
653
- :explanation=>"This variable must be a string."}],
654
- :type=>:String,
655
- :autoscanned_defaults=>["on"]},
656
580
  :init=>
657
581
  {:should_include=>"true",
658
582
  :description=>nil,
@@ -684,16 +608,6 @@
684
608
  :explanation=>"This variable must be a string."}],
685
609
  :type=>:String,
686
610
  :autoscanned_defaults=>["on"]},
687
- :write_phi=>
688
- {:should_include=>"true",
689
- :description=>nil,
690
- :help=>nil,
691
- :code_name=>:write_phi,
692
- :must_pass=>
693
- [{:test=>"kind_of? String",
694
- :explanation=>"This variable must be a string."}],
695
- :type=>:String,
696
- :autoscanned_defaults=>["on"]},
697
611
  :scan_type=>
698
612
  {:should_include=>"true",
699
613
  :description=>nil,
@@ -714,33 +628,117 @@
714
628
  :explanation=>"This variable must be an integer."}],
715
629
  :type=>:Integer,
716
630
  :autoscanned_defaults=>[1]},
717
- :fluxfile=>
631
+ :hyper=>
718
632
  {:should_include=>"true",
719
633
  :description=>"",
720
634
  :help=>"",
721
- :code_name=>:fluxfile,
635
+ :code_name=>:hyper,
722
636
  :must_pass=>
723
- [{:test=>"kind_of? String",
724
- :explanation=>"This variable must be a string."}],
725
- :type=>:String},
726
- :stopfile=>
637
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
638
+ :explanation=>
639
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
640
+ :type=>:Fortran_Bool},
641
+ :zero_restart_avg=>
727
642
  {:should_include=>"true",
728
643
  :description=>"",
729
644
  :help=>"",
730
- :code_name=>:stopfile,
645
+ :code_name=>:zero_restart_avg,
731
646
  :must_pass=>
732
- [{:test=>"kind_of? String",
733
- :explanation=>"This variable must be a string."}],
734
- :type=>:String},
735
- :restartfile=>
647
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
648
+ :explanation=>
649
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
650
+ :type=>:Fortran_Bool},
651
+ :no_zderiv_covering=>
652
+ {:should_include=>"true",
653
+ :description=>"",
654
+ :help=>"",
655
+ :code_name=>:no_zderiv_covering,
656
+ :must_pass=>
657
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
658
+ :explanation=>
659
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
660
+ :type=>:Fortran_Bool},
661
+ :ostem_rname=>
662
+ {:should_include=>"true",
663
+ :description=>"If true, all output files named after the input file.",
664
+ :help=>
665
+ "If true, all output files named after the input file. Otherwise original gryfx naming scheme.",
666
+ :code_name=>:ostem_rname,
667
+ :must_pass=>
668
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
669
+ :explanation=>
670
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
671
+ :type=>:Fortran_Bool},
672
+ :write_phi=>
736
673
  {:should_include=>"true",
737
674
  :description=>"",
738
675
  :help=>"",
739
- :code_name=>:restartfile,
676
+ :code_name=>:write_phi,
740
677
  :must_pass=>
741
- [{:test=>"kind_of? String",
742
- :explanation=>"This variable must be a string."}],
743
- :type=>:String}}},
678
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
679
+ :explanation=>
680
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
681
+ :type=>:Fortran_Bool},
682
+ :no_omegad=>
683
+ {:should_include=>"true",
684
+ :description=>"",
685
+ :help=>"",
686
+ :code_name=>:no_omegad,
687
+ :must_pass=>
688
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
689
+ :explanation=>
690
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
691
+ :type=>:Fortran_Bool},
692
+ :const_curv=>
693
+ {:should_include=>"true",
694
+ :description=>"",
695
+ :help=>"",
696
+ :code_name=>:const_curv,
697
+ :must_pass=>
698
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
699
+ :explanation=>
700
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
701
+ :type=>:Fortran_Bool},
702
+ :varenna=>
703
+ {:should_include=>"true",
704
+ :description=>"",
705
+ :help=>"",
706
+ :code_name=>:varenna,
707
+ :must_pass=>
708
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
709
+ :explanation=>
710
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
711
+ :type=>:Fortran_Bool},
712
+ :nlpm=>
713
+ {:should_include=>"true",
714
+ :description=>"",
715
+ :help=>"",
716
+ :code_name=>:nlpm,
717
+ :must_pass=>
718
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
719
+ :explanation=>
720
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
721
+ :type=>:Fortran_Bool},
722
+ :smagorinsky=>
723
+ {:should_include=>"true",
724
+ :description=>"",
725
+ :help=>"",
726
+ :code_name=>:smagorinsky,
727
+ :must_pass=>
728
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
729
+ :explanation=>
730
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
731
+ :type=>:Fortran_Bool},
732
+ :debug=>
733
+ {:should_include=>"true",
734
+ :description=>"",
735
+ :help=>"",
736
+ :code_name=>:debug,
737
+ :must_pass=>
738
+ [{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
739
+ :explanation=>
740
+ "This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
741
+ :type=>:Fortran_Bool}}},
744
742
  :collisions_knobs=>
745
743
  {:description=>"",
746
744
  :should_include=>"true",
@@ -820,14 +818,18 @@
820
818
  [{:test=>"kind_of? Numeric",
821
819
  :explanation=>
822
820
  "This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
823
- :type=>:Float},
824
- :equilibrium_type=>
821
+ :type=>:Float}}},
822
+ :theta_grid_knobs=>
823
+ {:description=>"",
824
+ :should_include=>"true",
825
+ :variables=>
826
+ {:equilibrium_option=>
825
827
  {:should_include=>"true",
826
828
  :description=>
827
- "Choice of equilbrium, can be \"miller\", \"chease\", or \"salpha\".",
829
+ "Controls which geometric assumptions are used in the run.",
828
830
  :help=>
829
- "Choice of equilbrium, can be \"miller\", \"chease\", or \"salpha\".",
830
- :code_name=>:equilibrium_type,
831
+ "The equilibrium_option variable controls which geometric assumptions are used in the run. Additional namelists determine the geometric parameters according to the choice made here. Allowed values are:\n** 'eik' Use routines from the geometry module, controlled mainly by the subsidiary namelists theta_grid_parameters and theta_grid_eik_knob.\n** 'default' Same as 'eik' \n** 's-alpha' Use high aspect-ratio toroidal equilbrium (which can be simplified to slab or cylinder), controlled by the subsidiary namelist theta_grid_parameters and theta_grid_salpha_knob\n** 'file' Use output from rungridgen code directly. Controlled by theta_grid_file_knobs. Note: in this case, the variables nperiod and ntheta (from the theta_grid_parameters namelist) are ignored.\n** 'grid.out' Same as 'file'",
832
+ :code_name=>:equilibrium_option,
831
833
  :must_pass=>
832
834
  [{:test=>"kind_of? String",
833
835
  :explanation=>"This variable must be a string."}],
@@ -5,7 +5,7 @@ CodeRunner.setup_run_class('gryfx')
5
5
  # Code to analyse the source code to look for new input variables... very imperfect
6
6
  ################################################################################
7
7
 
8
- CodeRunner::Gryfx.synchronise_variables_from_input_file('test/cyclone_miller_ke.in')
8
+ CodeRunner::Gryfx.synchronise_variables_from_input_file(ENV['GRYFX_SOURCE'] + '/namelist_defaults.in')
9
9
  #CodeRunner::Gryfx.update_defaults_from_source_code(ENV['GRYFX_SOURCE'])
10
10
 
11
11
 
@@ -173,28 +173,28 @@
173
173
  &gryfx_knobs
174
174
  inlpm = 2
175
175
  dnlpm = 1.0
176
- hyper = "off"
176
+ hyper = .false.
177
177
  nu_hyper = 1.0
178
178
  p_hyper = 2
179
179
  init_amp = 1.0e-5
180
180
  scan_type = "outputs"
181
181
  scan_number = 1
182
- zero_restart_avg = "off"
183
- no_zderiv_covering = "off"
184
- write_omega = 'off'
185
- write_phi = "off"
182
+ zero_restart_avg = .false.
183
+ no_zderiv_covering = .false.
184
+ write_omega = .false.
185
+ write_phi = .false.
186
186
  restart = "off"
187
- no_omegad = "off"
188
- const_curv = "off"
189
- varenna = "off"
190
- nlpm = "off"
191
- smagorinsky = "off"
187
+ no_omegad = .false.
188
+ const_curv = .false.
189
+ varenna = .false.
190
+ nlpm = .false.
191
+ smagorinsky = .false.
192
192
  init = "density"
193
- debug = "on"
194
- s_alpha = "on"
195
- fluxfile = "./scan/output/linearflux"
196
- stopfile = "linear.stop"
197
- restartfile = "restart/linear.bin"
193
+ debug = .true.
194
+ !fluxfile = "./scan/output/linearflux"
195
+ !stopfile = "linear.stop"
196
+ !restartfile = "restart/linear.bin"
197
+ ostem_rname=.true.
198
198
  /
199
199
 
200
200
 
@@ -29,13 +29,15 @@ if ENV['GRYFX_EXEC']
29
29
  ## Don't uncomment the line below unless you *really* know what you are doing! Replacing the test archive will break many of the tests
30
30
  Dir.chdir('test'){system "rm cyclone_miller_ke.tgz; tar -czf cyclone_miller_ke.tgz cyclone_miller_ke/" unless FileTest.exist?('cyclone_miller_ke.tgz')}
31
31
  #Dir.chdir('test'){system "rm cyclone_miller_ke.tgz; tar -czf cyclone_miller_ke.tgz cyclone_miller_ke/"} #unless FileTest.exist?('cyclone_miller_ke.tgz')}
32
- FileUtils.rm_r(tfolder)
32
+ #FileUtils.rm_r(tfolder)
33
33
  end
34
34
  def test_submission
35
35
  CodeRunner.submit(T: false, C: 'gryfx', X: ENV['GRYFX_EXEC'], D: 'test_gryfxcrmod', n: '1', Y: tfolder, p: '{}')
36
36
  CodeRunner.submit(T: false, C: 'gryfx', X: ENV['GRYFX_EXEC'], D: 'test_gryfxcrmod', n: '1', Y: tfolder, p: '{nstep: 7000, init_amp: 0.5, nonlinear_mode: "on"}')
37
37
  CodeRunner::Gryfx.diff_input_files(tfolder + '/v/id_1/v_id_1.in', 'test/cyclone_miller_ke.in')
38
38
  CodeRunner.status(Y: tfolder)
39
+ assert_equal(2, CodeRunner.fetch_runner(Y: tfolder).run_list.size)
40
+ assert_equal(:Complete, CodeRunner.fetch_runner(Y: tfolder).run_list[1].status)
39
41
  end
40
42
  end
41
43
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gryfxcrmod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-19 00:00:00.000000000 Z
12
+ date: 2013-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coderunner
@@ -183,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  segments:
185
185
  - 0
186
- hash: 1954477338330875732
186
+ hash: -4498785830276858438
187
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  none: false
189
189
  requirements: