forked from farhaddaei/BATSRUS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.test
2405 lines (1995 loc) · 79.3 KB
/
Makefile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#^CFG FILE TESTING
### TESTS FOR THE STAND-ALONE BATSRUS ###
# !!! NOTE: In the list below "test_func" should be the last test
# Setting BLESS=YES or Y will copy the solution into the reference solution
BLESS=NO
DIFFNUM = ${SCRIPTDIR}/DiffNum.pl -BLESS=${BLESS}
.NOTPARALLEL:
test_help:
@echo " test (run tests with ${OMPIRUN})"
@echo " test NP=3 NTHREAD=4 (run tests with ${PARALLEL} -n 3 and 4 threads)"
@echo " test NP='8 --oversubscribe'(run tests with ${PARALLEL} -n 8 --oversubscribe)"
@echo " test PARALLEL=aprun (run tests with aprun instead of mpiexec)"
@echo " test NPFLAG=-np (run tests with -np instead of -n)"
@echo " test MPIRUN= (run tests without MPI)"
@echo " test OPENMP=-noopenmp (run tests without OpenMP)"
@echo " test OPENACC=-noacc (run tests without OpenACC)"
@echo ""
@echo " test_gpu (run GPU related tests only)"
@echo ""
@echo " test_amr_compile (compile test_amr)"
@echo " test_amr_rundir (create run directory for test_amr)"
@echo " test_amr_run NP=4 (run test_amr with 4 MPI processes)"
@echo " test_amr_check (check test_amr results against reference)"
@echo " test_amr_check BLESS=YES (update test_amr reference solutions)"
@echo " test_amr TESTDIR=run_amr (run AMR test in run_amr directory)"
@echo ""
@echo " test_2bodyplot (run 2 Body Plot test)"
@echo " test_amr (run Cartesian AMR test)"
@echo " test_amrsph (run spherical AMR test)"
@echo " test_awsom (run AWSoM corona test)"
@echo " test_awsom_gpu (run AWSoM corona test on GPU)"
@echo " test_awsom_large_gpu (run large AWSoM corona test on GPU)"
@echo " test_anisotropic (run anisotropic pressure test)"
@echo " test_bvector (run Bvector Solar Corona test)"
@echo " test_earth (run Cartesian Earth test)"
@echo " test_earthsph (run spherical Earth test)"
@echo " test_fivemoment_alfven (run 5-moment Alven wave test)"
@echo " test_fivemoment_shock (run 5-moment shock wave test)"
@echo " test_fivemoment_langmuir (run 5-moment Langmuir wave test)"
@echo " test_func (run functionality tests)"
@echo " test_hallmhd (run Hall MHD test)"
@echo " test_L1toBC (run L1 to BC propagation test)"
@echo " test_magnetometer (run magnetometer test)"
@echo " test_mhdnoncons (run non-conservative MHD test)"
@echo " test_multifluid (run multi-fluid test)"
@echo " test_multiion (run multi-ion test)"
@echo " test_partsteady (run part steady test)"
@echo " test_region2d (run 2D BATL region test)"
@echo " test_shockramp (run shockramp test)"
@echo " test_shockround (run shocktube test on roundcube)"
@echo " test_shocktube (run shocktube test)"
@echo " test_shocktube_1d (run 1D shocktube test on GPU)"
@echo " test_fastwave (run 3D fast wave test on GPU)"
@echo " test_fastwave_2d (run 2D rotated fast wave test on GPU)"
@echo " test_bx0 (run 3D bx0 isosurface plot test)"
@echo " test_spectrum (run spectrum post-processing test)"
@echo " test_spectrum2 (run spectrum2 post-processing test)"
@echo " test_twofluidmhd (run two-fluid test)"
@echo " test_viscosity (run viscosity test)"
-@(if [ -d srcUserExtra ]; then ${MAKE} test_extra_help; fi)
test_extra_help:
@echo " test_awsomfluids (run 1D corona multifluid test)"
@echo " test_awsomchargestate (run corona with charge state test)"
@echo " test_comet (run comet test)"
@echo " test_cometCGhd (run comet CG hd test)"
@echo " test_cometCGfluids (run comet CG fluids test)"
@echo " test_eosgodunov (run EOS/Godunov test)"
@echo " test_europa2fluidspe (run 2-ion-fluid+Pe Europa test)"
@echo " test_europa3fluidspe (run 3-ion-fluid+Pe Europa test)"
@echo " test_fluxemergence (run flux emergence test)"
@echo " test_titan (run Titan tests)"
@echo " test_titan_start (run first Titan test)"
@echo " test_titan_restart (run titan restart test)"
@echo " test_graydiffusion (run gray-diffusion set test)"
@echo " test_laserpackage (run CRASH laser package test)"
@echo " test_mars (run Mars test)"
@echo " test_mars_start (run first mars test)"
@echo " test_mars_restart (run mars restart test)"
@echo " test_mercurysph (run Mercury test)"
@echo " test_ganymede (run Ganymede test)"
@echo " test_outerhelio2d (run 2D Outer Heliosphere test)"
@echo " test_outerhelio (run Outer Heliosphere test)"
@echo " test_outerhelio_1d (run 1D Outer Heliosphere test)"
@echo " test_outerheliopui (run Outer Heliosphere w/ PUIs test)"
@echo " test_outerheliopui_1d (run 1D Outer Heliosphere w/ PUIs test)"
@echo " test_saturn (run Saturn test)"
@echo " test_jupiter (run Jupiter test)"
@echo " test_venus (run Venus test)"
test:
@rm -f *.diff
-@($(MAKE) test_spectrum2)
-@($(MAKE) test_spectrum)
-@($(MAKE) test_small_gpu)
cd ${DIR}; ./Config.pl -noacc
-@($(MAKE) test_bx0 TESTDIR=run_test_bx0)
-@($(MAKE) test_shocktube TESTDIR=run_test_shocktube)
-@($(MAKE) test_shockround TESTDIR=run_test_shockround)
-@($(MAKE) test_shockramp TESTDIR=run_test_shockramp)
-@($(MAKE) test_partsteady TESTDIR=run_test_partsteady)
-@($(MAKE) test_hallmhd TESTDIR=run_test_hallmhd)
-@($(MAKE) test_twofluidmhd TESTDIR=run_test_twofluidmhd)
-@($(MAKE) test_multifluid TESTDIR=run_test_multifluid)
-@($(MAKE) test_multiion TESTDIR=run_test_multiion)
-@($(MAKE) test_mhdnoncons TESTDIR=run_test_mhdnoncons)
-@($(MAKE) test_viscosity TESTDIR=run_test_viscosity)
-@($(MAKE) test_awsom TESTDIR=run_test_awsom)
-@($(MAKE) test_earthsph TESTDIR=run_test_earthsph)
-@($(MAKE) test_2bodyplot TESTDIR=run_test_2bodyplot)
-@($(MAKE) test_magnetometer TESTDIR=run_test_magnetometer)
-@($(MAKE) test_anisotropic TESTDIR=run_test_anisotropic)
-@($(MAKE) test_region2d TESTDIR=run_test_region2d)
-@($(MAKE) test_fivemoment_alfven TESTDIR=run_test_fivemoment_alfven)
-@($(MAKE) test_fivemoment_shock TESTDIR=run_test_fivemoment_shock)
-@($(MAKE) test_fivemoment_langmuir TESTDIR=run_test_fivemoment_langmuir)
-@($(MAKE) test_func TESTDIR=run_test_func)
-@(if [ -d srcUserExtra ]; then ${MAKE} test_extra; fi)
./Config.pl -noopenmp
@ls -l *.diff
test_small_gpu:
-@($(MAKE) test_shocktube_1d TESTDIR=run_test_shocktube_1d)
-@($(MAKE) test_fastwave TESTDIR=run_test_fastwave)
-@($(MAKE) test_fastwave_2d TESTDIR=run_test_fastwave_2d)
-@($(MAKE) test_earth TESTDIR=run_test_earth)
-@($(MAKE) test_awsom_gpu TESTDIR=run_test_awsom_gpu)
test_gpu: test_small_gpu
-@($(MAKE) test_awsom_large_gpu TESTDIR=run_test_awsom_large_gpu)
test_extra:
-@($(MAKE) test_awsomchargestate TESTDIR=run_test_awsomchargestate)
-@($(MAKE) test_awsomfluids TESTDIR=run_test_awsomfluids)
-@($(MAKE) test_bvector TESTDIR=run_test_bvector)
-@($(MAKE) test_fluxemergence TESTDIR=run_test_fluxemergence)
-@($(MAKE) test_eosgodunov TESTDIR=run_test_eosgodunov)
./Config.pl -nohdf5
-@($(MAKE) test_laserpackage TESTDIR=run_test_laserpackage)
./Config.pl -nohypre
-@($(MAKE) test_graydiffusion TESTDIR=run_test_graydiffusion)
-@($(MAKE) test_outerhelio2d TESTDIR=run_test_outerhelio2d)
-@($(MAKE) test_outerhelio TESTDIR=run_test_outerhelio)
-@($(MAKE) test_outerhelio_1d TESTDIR=run_test_outerhelio_1d)
-@($(MAKE) test_outerheliopui TESTDIR=run_test_outerheliopui)
-@($(MAKE) test_outerheliopui_1d TESTDIR=run_test_outerheliopui_1d)
-@($(MAKE) test_titan TESTDIR=run_test_titan)
-@($(MAKE) test_mars TESTDIR=run_test_mars)
-@($(MAKE) test_venus TESTDIR=run_test_venus)
-@($(MAKE) test_mercurysph TESTDIR=run_test_mercurysph)
-@($(MAKE) test_ganymede TESTDIR=run_test_ganymede)
-@($(MAKE) test_saturn TESTDIR=run_test_saturn)
-@($(MAKE) test_jupiter TESTDIR=run_test_jupiter)
-@($(MAKE) test_comet TESTDIR=run_test_comet)
-@($(MAKE) test_cometCGhd TESTDIR=run_test_cometCGhd)
-@($(MAKE) test_cometCGfluids TESTDIR=run_test_cometCGfluids)
-@($(MAKE) test_europa2fluidspe TESTDIR=run_test_europa2fluidspe)
-@($(MAKE) test_europa3fluidspe TESTDIR=run_test_europa3fluidspe)
# !!! NOTE: In the above list "test_func" should be the last test
# All tests are done in this directory:
TESTDIR = run_test
# Reference solution is put into this directory when needed:
REFDIR = run_test_ref
OPENMP = -openmp
OPENACC = -acc
test_rundir:
rm -rf ${TESTDIR}
$(MAKE) rundir RUNDIR=${TESTDIR} STANDALONE=YES GMDIR=`pwd`
### FLUX EMERGENCE TEST ###
test_fluxemergence:
@echo "test_fluxemergence_compile..." > test_fluxemergence.diff
$(MAKE) test_fluxemergence_compile
@echo "test_fluxemergence_rundir..." >> test_fluxemergence.diff
$(MAKE) test_fluxemergence_rundir
@echo "test_fluxemergence_run..." >> test_fluxemergence.diff
$(MAKE) test_fluxemergence_run
@echo "test_fluxemergence_check..." >> test_fluxemergence.diff
$(MAKE) test_fluxemergence_check
test_fluxemergence_compile:
./Config.pl ${OPENMP} -e=MhdEosRad -u=Ee -ng=2 -g=10,10,10
$(MAKE) BATSRUS
make PIDL
test_fluxemergence_rundir:
rm -rf ${TESTDIR}
$(MAKE) rundir RUNDIR=${TESTDIR} COMPONENT=EE STANDALONE=YES GMDIR=`pwd`
cd ${TESTDIR}; cp ../data/FLUXEMERGENCE/*.dat* .
cd ${TESTDIR}; cp Param/FLUXEMERGENCE/Grid.* .
cd ${TESTDIR}; gunzip *.gz
cd ${TESTDIR}; cp Param/CORONA/RadCoolCorona.dat .
cd ${TESTDIR}; cp Param/FLUXEMERGENCE/PARAM.in.FluxEmergence.1D PARAM.in
test_fluxemergence_run:
cd ${TESTDIR}; cp Param/FLUXEMERGENCE/PARAM.in.FluxEmergence.1D PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog_1d
cd ${TESTDIR}; ./PostProc.pl -M -cat RESULTS/run_1d
cd ${TESTDIR}; cp Param/FLUXEMERGENCE/PARAM.in.FluxEmergence.3D PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog_3d
cd ${TESTDIR}; ./Restart.pl
cd ${TESTDIR}; ./PostProc.pl -M -cat RESULTS/run_3d
cd ${TESTDIR}; cp Param/FLUXEMERGENCE/PARAM.in.FluxEmergence PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog_restart
cd ${TESTDIR}; ./PostProc.pl -M -cat RESULTS/run_restart; \
mv runlog_restart RESULTS/run_restart
test_fluxemergence_check:
-@(${DIFFNUM} -t \
${TESTDIR}/RESULTS/run_restart/EE/log_n000011.log \
Param/FLUXEMERGENCE/TestOutput/log_fluxemergence.log \
> test_fluxemergence.diff)
ls -l test_fluxemergence.diff
### SHOCK TUBE TEST ###
test_shocktube:
@echo "test_shocktube_compile..." > test_shocktube.diff
$(MAKE) test_shocktube_compile
@echo "test_shocktube_rundir..." >> test_shocktube.diff
$(MAKE) test_shocktube_rundir
@echo "test_shocktube_run..." >> test_shocktube.diff
$(MAKE) test_shocktube_run
@echo "test_shocktube_check..." >> test_shocktube.diff
$(MAKE) test_shocktube_check
test_shocktube_compile:
./Config.pl ${OPENMP} -u=Default -e=MhdHyp -ng=2 -g=64,4,1
$(MAKE) BATSRUS
make PIDL
test_shocktube_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.hyp PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_shocktube_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl -m RESULT
test_shocktube_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-11 \
${TESTDIR}/RESULT/GM/1d_*t25.6*.out \
Param/SHOCKTUBE/TestOutput/mhdhyp_ref.out \
> test_shocktube.diff)
ls -l test_shocktube.diff
### ROUND CUBE SHOCK TUBE TEST ###
test_shockround:
@echo "test_shockround_compile..." > test_shockround.diff
$(MAKE) test_shockround_compile
@echo "test_shockround_rundir..." >> test_shockround.diff
$(MAKE) test_shockround_rundir
@echo "test_shockround_run..." >> test_shockround.diff
$(MAKE) test_shockround_run
@echo "test_shockround_check..." >> test_shockround.diff
$(MAKE) test_shockround_check
test_shockround_compile:
./Config.pl ${OPENMP} -u=Default -e=Mhd -ng=2 -g=4,4,4
$(MAKE) BATSRUS
make PIDL
test_shockround_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.roundcube PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_shockround_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl -m RESULT
test_shockround_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-11 \
${TESTDIR}/RESULT/GM/log*.log \
Param/SHOCKTUBE/TestOutput/shockround.log \
> test_shockround.diff)
ls -l test_shockround.diff
### 1D SHOCK TUBE TEST ###
test_shocktube_1d:
@echo "test_shocktube_1d_compile..." > test_shocktube_1d_gpu.diff
$(MAKE) test_shocktube_1d_compile
@echo "test_shocktube_1d_rundir..." >> test_shocktube_1d_gpu.diff
$(MAKE) test_shocktube_1d_rundir
@echo "test_shocktube_1d_run..." >> test_shocktube_1d_gpu.diff
$(MAKE) test_shocktube_1d_run
@echo "test_shocktube_1d_check..." >> test_shocktube_1d_gpu.diff
$(MAKE) test_shocktube_1d_check
test_shocktube_1d_compile:
cd ${DIR}; ./Config.pl -noopenmp ${OPENACC}
./Config.pl -u=Default -e=MhdHyp -ng=2 -g=64,1,1
./Config.pl -opt=Param/SHOCKTUBE/PARAM.in.hyp.1d
$(MAKE) BATSRUS
make PIDL
test_shocktube_1d_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.hyp.1d PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_shocktube_1d_run:
cd ${TESTDIR}; ${MPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl -m RESULT
test_shocktube_1d_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-11 \
${TESTDIR}/RESULT/GM/1d_*t25.6*.out \
Param/SHOCKTUBE/TestOutput/mhdhyp_1d_ref.out \
> test_shocktube_1d_gpu.diff)
ls -l test_shocktube_1d_gpu.diff
### FASTWAVE TEST SIMPLIFIED ###
test_fastwave_2d:
@echo "test_fastwave_2d_compile..." > test_fastwave_2d_gpu.diff
$(MAKE) test_fastwave_2d_compile
@echo "test_fastwave_2d_rundir..." >> test_fastwave_2d_gpu.diff
$(MAKE) test_fastwave_2d_rundir
@echo "test_fastwave_2d_run..." >> test_fastwave_2d_gpu.diff
$(MAKE) test_fastwave_2d_run
@echo "test_fastwave_2d_check..." >> test_fastwave_2d_gpu.diff
$(MAKE) test_fastwave_2d_check
test_fastwave_2d_compile:
cd ${DIR}; ./Config.pl ${OPENACC}
./Config.pl -u=Waves -e=Mhd -ng=2 -g=6,6,1
./Config.pl -opt=Param/SHOCKTUBE/PARAM.in.fast_wave_2d
$(MAKE) BATSRUS
make PIDL
test_fastwave_2d_rundir:test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.fast_wave_2d PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_fastwave_2d_run:
cd ${TESTDIR}; ${SERIAL} ./BATSRUS.exe > runlog
cd ${TESTDIR}; rm -rf RESULT; ./PostProc.pl -m RESULT
test_fastwave_2d_check:
-@(${DIFFNUM} -t -r=1e-3 -a=1e-6 \
${TESTDIR}/RESULT/GM/z=0_mhd_1_t00000500_n00000060.out \
Param/SHOCKTUBE/TestOutput/fastwave_2d_ref.out \
> test_fastwave_2d_gpu.diff)
ls -l test_fastwave_2d_gpu.diff
### SHOCKRAMP TEST ###
test_shockramp:
@echo "test_shockramp_compile..." > test_shockramp.diff
$(MAKE) test_shockramp_compile
@echo "test_shockramp_rundir..." >> test_shockramp.diff
$(MAKE) test_shockramp_rundir
@echo "test_shockramp_run..." >> test_shockramp.diff
$(MAKE) test_shockramp_run
@echo "test_shockramp_check..." >> test_shockramp.diff
$(MAKE) test_shockramp_check
test_shockramp_compile:
./Config.pl ${OPENMP} -u=Waves -e=Hd -g=6,6,1 -ng=3
$(MAKE) BATSRUS
make PIDL
test_shockramp_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.shockramp PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_shockramp_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl -m RESULT
test_shockramp_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-11 \
${TESTDIR}/RESULT/GM/z=0_*t00.05*.out \
Param/SHOCKTUBE/TestOutput/shockramp.out.gz \
> test_shockramp.diff)
ls -l test_shockramp.diff
### 3D FAST WAVE TEST ###
test_fastwave:
@echo "test_fastwave_compile..." > test_fastwave_gpu.diff
$(MAKE) test_fastwave_compile
@echo "test_fastwave_rundir..." >> test_fastwave_gpu.diff
$(MAKE) test_fastwave_rundir
@echo "test_fastwave_run..." >> test_fastwave_gpu.diff
$(MAKE) test_fastwave_run
@echo "test_fastwave_check..." >> test_fastwave_gpu.diff
$(MAKE) test_fastwave_check
test_fastwave_compile:
cd ${DIR}; ./Config.pl -noopenmp ${OPENACC}
./Config.pl -u=Waves -e=Mhd -ng=2 -g=10,10,10
./Config.pl -opt=Param/SHOCKTUBE/PARAM.in.fast_wave
$(MAKE) BATSRUS
make PIDL
test_fastwave_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.fast_wave PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_fastwave_run:
cd ${TESTDIR}; ${SERIAL} ./BATSRUS.exe > runlog
cd ${TESTDIR}; rm -rf RESULT; ./PostProc.pl -m RESULT
test_fastwave_check:
-@(${DIFFNUM} -t -r=1e-3 -a=1e-6 \
${TESTDIR}/RESULT/GM/z*_n00000150.out \
Param/SHOCKTUBE/TestOutput/fast_wave_ref.out \
> test_fastwave_gpu.diff)
ls -l test_fastwave_gpu.diff
### 3D BX0 TEST ###
test_bx0:
@echo "test_bx0_compile..." > test_bx0.diff
$(MAKE) test_bx0_compile
@echo "test_bx0_rundir..." >> test_bx0.diff
$(MAKE) test_bx0_rundir
@echo "test_bx0_run..." >> test_bx0.diff
$(MAKE) test_bx0_run
@echo "test_bx0_check..." >> test_bx0.diff
$(MAKE) test_bx0_check
test_bx0_compile:
./Config.pl -noopenmp -u=Waves -e=Mhd -g=10,10,10
$(MAKE) BATSRUS
make PIDL
test_bx0_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.bx0 PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_bx0_run:
cd ${TESTDIR}; ${MPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; rm -rf RESULT; ./PostProc.pl -m RESULT
test_bx0_check:
-@(${DIFFNUM} -t -r=1e-3 -a=1e-6 \
${TESTDIR}/RESULT/GM/bx0*_n00000001.out \
Param/SHOCKTUBE/TestOutput/bx0_ref.out \
> test_bx0.diff)
ls -l test_bx0.diff
### PART STEADY TEST ###
test_partsteady:
@echo "test_partsteady_compile..." > test_partsteady.diff
$(MAKE) test_partsteady_compile
@echo "test_partsteady_rundir..." >> test_partsteady.diff
$(MAKE) test_partsteady_rundir
@echo "test_partsteady_run..." >> test_partsteady.diff
$(MAKE) test_partsteady_run
@echo "test_partsteady_check..." >> test_partsteady.diff
$(MAKE) test_partsteady_check
test_partsteady_compile:
./Config.pl ${OPENMP} -u=Default -e=MhdHyp -ng=2 -g=4,4,1
$(MAKE) BATSRUS
make PIDL
test_partsteady_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.partsteady PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_partsteady_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl -m RESULT
test_partsteady_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-11 \
${TESTDIR}/RESULT/GM/cut_*t25.6*.out \
Param/SHOCKTUBE/TestOutput/partsteady_ref.out \
> test_partsteady.diff)
ls -l test_partsteady.diff
### HALL MHD TEST ###
test_hallmhd:
@echo "test_hallmhd_compile..." > test_hallmhd.diff
$(MAKE) test_hallmhd_compile
@echo "test_hallmhd_rundir..." >> test_hallmhd.diff
$(MAKE) test_hallmhd_rundir
@echo "test_hallmhd_run..." >> test_hallmhd.diff
$(MAKE) test_hallmhd_run
@echo "test_hallmhd_check..." >> test_hallmhd.diff
$(MAKE) test_hallmhd_check
test_hallmhd_compile:
./Config.pl -noopenmp -u=Waves -e=Mhd -f -ng=2 -g=4,2,2
$(MAKE) BATSRUS
make PIDL
test_hallmhd_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.HallTest PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_hallmhd_run:
cd ${TESTDIR}; ${MPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl RESULT
test_hallmhd_check:
-@(${DIFFNUM} -t -r=1e-5 -a=2e-7 \
${TESTDIR}/RESULT/GM/1d_*20.out \
Param/SHOCKTUBE/TestOutput/hall_ref.out \
> test_hallmhd.diff)
ls -l test_hallmhd.diff
### HYBRID TEST ###
test_hybrid:
@echo "test_hybrid_compile..." > test_hybrid.diff
$(MAKE) test_hybrid_compile
@echo "test_hybrid_rundir..." >> test_hybrid.diff
$(MAKE) test_hybrid_rundir
@echo "test_hybrid_run..." >> test_hybrid.diff
$(MAKE) test_hybrid_run
@echo "test_hybrid_check..." >> test_hybrid.diff
$(MAKE) test_hybrid_check
test_hybrid_compile:
./Config.pl ${OPENMP} -u=Hybrid -e=Mhd -f -ng=2 -g=4,2,2
$(MAKE) BATSRUS
make PIDL
test_hybrid_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.HybridTest PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_hybrid_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl RESULT
test_hybrid_check:
-@(${DIFFNUM} -t -r=1e-5 -a=2e-7 \
${TESTDIR}/RESULT/GM/1d_*20.out \
Param/SHOCKTUBE/TestOutput/hall_ref.out \
> test_hybrid.diff)
ls -l test_hybrid.diff
### VISCOSITY TEST ###
test_viscosity:
@echo "test_viscosity_compile..." > test_viscosity.diff
$(MAKE) test_viscosity_compile
@echo "test_viscosity_rundir..." >> test_viscosity.diff
$(MAKE) test_viscosity_rundir
@echo "test_viscosity_run..." >> test_viscosity.diff
$(MAKE) test_viscosity_run
@echo "test_viscosity_check..." >> test_viscosity.diff
$(MAKE) test_viscosity_check
test_viscosity_compile:
./Config.pl ${OPENMP} -e=Hd -u=Waves -ng=2 -g=16,4,1
$(MAKE) BATSRUS
make PIDL
test_viscosity_rundir: test_rundir
cd ${TESTDIR}; cp Param/VISCOSITY/PARAM.in PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_viscosity_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl -M RESULTS
test_viscosity_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-11 \
${TESTDIR}/RESULTS/GM/z=0*.outs \
Param/VISCOSITY/TestOutput/z=0_ref.outs \
> test_viscosity.diff)
ls -l test_viscosity.diff
### TWOFLUID MHD TEST ###
test_twofluidmhd:
@echo "test_twofluidmhd_compile..." > test_twofluidmhd.diff
$(MAKE) test_twofluidmhd_compile
@echo "test_twofluidmhd_rundir..." >> test_twofluidmhd.diff
$(MAKE) test_twofluidmhd_rundir
@echo "test_twofluidmhd_run..." >> test_twofluidmhd.diff
$(MAKE) test_twofluidmhd_run
@echo "test_twofluidmhd_check..." >> test_twofluidmhd.diff
$(MAKE) test_twofluidmhd_check
test_twofluidmhd_compile:
./Config.pl ${OPENMP} -u=Waves -e=MhdHypPe -f -ng=2 -g=64,2,2
$(MAKE) BATSRUS
make PIDL
test_twofluidmhd_rundir: test_rundir
cd ${TESTDIR}; cp Param/SHOCKTUBE/PARAM.in.TwofluidTest PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_twofluidmhd_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl RESULT
test_twofluidmhd_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-13 \
${TESTDIR}/RESULT/GM/cut_mhd_1_t00000020*.out \
Param/SHOCKTUBE/TestOutput/twofluid_ref.out \
> test_twofluidmhd.diff)
ls -l test_twofluidmhd.diff
### MULTI FLUID TEST ###
test_multifluid:
@echo "test_multifluid_compile..." > test_multifluid.diff
$(MAKE) test_multifluid_compile
@echo "test_multifluid_rundir..." >> test_multifluid.diff
$(MAKE) test_multifluid_rundir
@echo "test_multifluid_run..." >> test_multifluid.diff
$(MAKE) test_multifluid_run
@echo "test_multifluid_check..." >> test_multifluid.diff
$(MAKE) test_multifluid_check
test_multifluid_compile:
./Config.pl ${OPENMP} -u=Default -e=MhdHd -f -ng=2 -g=64,2,2
$(MAKE) BATSRUS
make PIDL
test_multifluid_rundir: test_rundir
cd ${TESTDIR}; cp Param/MULTIFLUID/PARAM.in .
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_multifluid_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl -m RESULT
test_multifluid_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-12 \
${TESTDIR}/RESULT/GM/cut_*025_n*.out \
Param/MULTIFLUID/TestOutput/cut_t25.out \
> test_multifluid.diff)
ls -l test_multifluid.diff
### MAGNETOMETER TEST ###
test_magnetometer:
@echo "test_magnetometer_compile..." >> test_magnetometer.diff
$(MAKE) test_magnetometer_compile
@echo "test_magnetometer_rundir..." >> test_magnetometer.diff
$(MAKE) test_magnetometer_rundir
@echo "test_magnetometer_run..." >> test_magnetometer.diff
$(MAKE) test_magnetometer_run
@echo "test_magnetometer_check..." >> test_magnetometer.diff
$(MAKE) test_magnetometer_check
test_magnetometer_compile:
./Config.pl ${OPENMP} -u=Default -e=Mhd -ng=2 -g=4,4,4
$(MAKE) BATSRUS
make PIDL
test_magnetometer_rundir: test_rundir
cd ${TESTDIR}; cp Param/MAGNETOMETER/magin.dat .
cd ${TESTDIR}; cp Param/MAGNETOMETER/PARAM.in PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_magnetometer_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl
test_magnetometer_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-12 \
${TESTDIR}/IO2/magnetometers_n00000000.mag \
Param/MAGNETOMETER/TestOutput/magnetometers_n00000000.mag \
> test_magnetometer.diff)
-@(${DIFFNUM} -t -r=1e-5 -a=3e-9 \
${TESTDIR}/IO2/eqb_t00000100_n*.out \
Param/MAGNETOMETER/TestOutput/eqb_t00000100.out \
>> test_magnetometer.diff)
-@(${DIFFNUM} -t -r=1e-5 -a=3e-9 \
${TESTDIR}/IO2/eqb_t00000100_n*.dat \
Param/MAGNETOMETER/TestOutput/eqb_t00000100.dat \
>> test_magnetometer.diff)
-@(${DIFFNUM} -t -r=1e-5 -a=3e-9 \
${TESTDIR}/IO2/bx0_mhd_6_t00000100*.out \
Param/MAGNETOMETER/TestOutput/bx0_t00000100.out \
>> test_magnetometer.diff)
ls -l test_magnetometer.diff
### MULTI ION TEST ###
test_multiion:
@echo "test_multiion_compile..." > test_multiion.diff
$(MAKE) test_multiion_compile
@echo "test_multiion_rundir..." >> test_multiion.diff
$(MAKE) test_multiion_rundir
@echo "test_multiion_run..." >> test_multiion.diff
$(MAKE) test_multiion_run
@echo "test_multiion_check..." >> test_multiion.diff
$(MAKE) test_multiion_check
test_multiion_compile:
./Config.pl ${OPENMP} -u=Default -e=MultiIon -f -ng=2 -g=64,2,2
$(MAKE) BATSRUS
make PIDL
test_multiion_rundir: test_rundir
cd ${TESTDIR}; cp Param/MULTIION/PARAM.in .
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_multiion_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl RESULTS
test_multiion_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-12 \
${TESTDIR}/RESULTS/GM/cut_*t02.*.out \
Param/MULTIION/TestOutput/cut_t2.out \
> test_multiion.diff)
ls -l test_multiion.diff
### NONCONSERVATIVE MHD TEST ###
test_mhdnoncons:
@echo "test_mhdnoncons_compile..." > test_mhdnoncons.diff
$(MAKE) test_mhdnoncons_compile
@echo "test_mhdnoncons_rundir..." >> test_mhdnoncons.diff
$(MAKE) test_mhdnoncons_rundir
@echo "test_mhdnoncons_run..." >> test_mhdnoncons.diff
$(MAKE) test_mhdnoncons_run
@echo "test_mhdnoncons_check..." >> test_mhdnoncons.diff
$(MAKE) test_mhdnoncons_check
test_mhdnoncons_compile:
./Config.pl ${OPENMP} -u=Default -e=MhdNonCons -f -ng=2 -g=64,2,2
$(MAKE) BATSRUS
make PIDL
test_mhdnoncons_rundir: test_rundir
cd ${TESTDIR}; cp Param/MHDNONCONS/PARAM.in .
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_mhdnoncons_run:
cd ${TESTDIR}; ${OMPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl RESULTS
test_mhdnoncons_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-11 \
${TESTDIR}/RESULTS/GM/cut_mhd_1_t00001000*.out \
Param/MHDNONCONS/TestOutput/cut_mhd_t10m.out \
> test_mhdnoncons.diff)
ls -l test_mhdnoncons.diff
### CRASH RELATED TESTS ###############################################
### EQUATION OF STATE AND GODUNOV SOLVER TEST ###
test_eosgodunov:
@echo "test_eosgodunov_compile..." > test_eosgodunov.diff
$(MAKE) test_eosgodunov_compile
@echo "test_eosgodunov_rundir..." >> test_eosgodunov.diff
$(MAKE) test_eosgodunov_rundir
@echo "test_eosgodunov_run..." >> test_eosgodunov.diff
$(MAKE) test_eosgodunov_run
@echo "test_eosgodunov_check..." >> test_eosgodunov.diff
$(MAKE) test_eosgodunov_check
test_eosgodunov_compile:
./Config.pl -noopenmp -e=HdEos -u=Eos -ng=2 -g=10,1,1
$(MAKE) CRASH
make PIDL
test_eosgodunov_rundir: test_rundir
cd ${TESTDIR}; cp Param/CRASH/PARAM.in.eosgodunov PARAM.in; \
ln -s ${BINDIR}/CRASH.exe .
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_eosgodunov_run:
cd ${TESTDIR}; ${MPIRUN} ./CRASH.exe > runlog
cd ${TESTDIR}; ./PostProc.pl RESULT
test_eosgodunov_check:
-@(${DIFFNUM} -t -r=1e-5 -a=3e-7 \
${TESTDIR}/RESULT/GM/cut_*500.0*.out \
Param/CRASH/TestOutput/eosgodunov.out \
> test_eosgodunov.diff)
ls -l test_eosgodunov.diff
### LASER PACKAGE TEST ###
test_laserpackage:
@echo "test_laserpackage_compile..." > test_laserpackage.diff
$(MAKE) test_laserpackage_compile
@echo "test_laserpackage_rundir..." >> test_laserpackage.diff
$(MAKE) test_laserpackage_rundir DEFAULT_EXE=CRASH.exe
@echo "test_laserpackage_run..." >> test_laserpackage.diff
$(MAKE) test_laserpackage_run
@echo "test_laserpackage_check..." >> test_laserpackage.diff
$(MAKE) test_laserpackage_check
test_laserpackage_compile:
./Config.pl -noopenmp -e=Crash -u=Crash -ng=2 -g=8,8,1 -nMaterial=5 -nWave=30
./Config.pl -hypre
$(MAKE) CRASH
make PIDL
test_laserpackage_rundir: test_rundir
cd ${TESTDIR}; cp Param/CRASH/PARAM.in.laserpackage PARAM.in
cd ${TESTDIR}; ln -s ../dataCRASH/LookupTables Tables
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_laserpackage_run:
cd ${TESTDIR}; ${MPIRUN} ./CRASH.exe > runlog
cd ${TESTDIR}; ./PostProc.pl -M RESULTS
test_laserpackage_check:
-@(${DIFFNUM} -t -r=2e-5 \
${TESTDIR}/RESULTS/GM/log_n000000.log \
Param/CRASH/TestOutput/log_laserpackage.log \
> test_laserpackage.diff)
ls -l test_laserpackage.diff
### GRAY-DIFFUSION TEST ###
test_graydiffusion:
@echo "test_graydiffusion_compile..." > test_graydiffusion.diff
$(MAKE) test_graydiffusion_compile
@echo "test_graydiffusion_rundir..." >> test_graydiffusion.diff
$(MAKE) test_graydiffusion_rundir
@echo "test_graydiffusion_run..." >> test_graydiffusion.diff
$(MAKE) test_graydiffusion_run
@echo "test_graydiffusion_check..." >> test_graydiffusion.diff
$(MAKE) test_graydiffusion_check
test_graydiffusion_compile:
./Config.pl -noopenmp -e=HdEosRad -u=GrayDiffusion -ng=2 -g=32,4,4
$(MAKE) BATSRUS
make PIDL
test_graydiffusion_rundir: test_rundir
cd ${TESTDIR}; cp Param/CRASH/PARAM.in.graydiffusion PARAM.in
cd ${TESTDIR}; gunzip -c Param/CRASH/initial_lowrie3.dat.gz > initial_lowrie3.dat
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_graydiffusion_run:
cd ${TESTDIR}; ${MPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; ./PostProc.pl -M RESULTS
test_graydiffusion_check:
-@(${DIFFNUM} -t -r=1e-5 -a=1e-4 \
${TESTDIR}/RESULTS/GM/log_n000000.log \
Param/CRASH/TestOutput/log_graydiffusion.log \
> test_graydiffusion.diff)
ls -l test_graydiffusion.diff
### END OF CRASH RELATED TESTS #############################################
### STANDALONE SOLAR CORONA TESTS ###
test_awsom_gpu:
@echo "test_awsom_gpu_compile..." > test_awsom_gpu.diff
$(MAKE) test_awsom_gpu_compile
@echo "test_awsom_gpu_rundir..." >> test_awsom_gpu.diff
$(MAKE) test_awsom_gpu_rundir
@echo "test_awsom_gpu_run..." >> test_awsom_gpu.diff
$(MAKE) test_awsom_gpu_run
@echo "test_awsom_gpu_check..." >> test_awsom_gpu.diff
$(MAKE) test_awsom_gpu_check
# Fails on Pleiades with OpenMP
test_awsom_gpu_compile:
cd ${DIR}; ./Config.pl -noopenmp ${OPENACC}
./Config.pl -u=Awsom -e=Awsom -ng=2 -g=6,4,4
./Config.pl -opt=Param/CORONA/PARAM.in.Awsom.GPU
$(MAKE) BATSRUS
make PIDL
test_awsom_gpu_rundir:
rm -rf ${TESTDIR}
$(MAKE) rundir RUNDIR=${TESTDIR} COMPONENT=SC STANDALONE=YES GMDIR=`pwd`
cd ${TESTDIR}; cp Param/CORONA/PARAM.in.Awsom.GPU PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_awsom_gpu_run:
cd ${TESTDIR}; ${SERIAL} ./BATSRUS.exe > runlog
cd ${TESTDIR}; rm -rf RESULTS; ./PostProc.pl -M RESULTS
test_awsom_gpu_check:
-@(${DIFFNUM} -a=1e-19 -r=1e-5 -t \
${TESTDIR}/RESULTS/SC/log_n000001.log \
Param/CORONA/TestOutput/log_n000001.sc.awsom_gpu \
> test_awsom_gpu.diff)
ls -l test_awsom_gpu.diff
test_awsom_large_gpu:
@echo "test_awsom_large_gpu_compile..." > test_awsom_large_gpu.diff
$(MAKE) test_awsom_large_gpu_compile
@echo "test_awsom_large_gpu_rundir..." >> test_awsom_large_gpu.diff
$(MAKE) test_awsom_large_gpu_rundir
@echo "test_awsom_large_gpu_run..." >> test_awsom_large_gpu.diff
$(MAKE) test_awsom_large_gpu_run
@echo "test_awsom_large_gpu_check..." >> test_awsom_large_gpu.diff
$(MAKE) test_awsom_large_gpu_check
# Fails on Pleiades with OpenMP
test_awsom_large_gpu_compile:
cd ${DIR}; ./Config.pl -noopenmp ${OPENACC}
./Config.pl -u=Awsom -e=Awsom -ng=2 -g=6,4,4
./Config.pl -opt=Param/CORONA/PARAM.in.Awsom.large.GPU
$(MAKE) BATSRUS
make PIDL
test_awsom_large_gpu_rundir:
rm -rf ${TESTDIR}
$(MAKE) rundir RUNDIR=${TESTDIR} COMPONENT=SC STANDALONE=YES GMDIR=`pwd`
cd ${TESTDIR}; cp Param/CORONA/PARAM.in.Awsom.large.GPU PARAM.in
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_awsom_large_gpu_run:
cd ${TESTDIR}; ${SERIAL} ./BATSRUS.exe > runlog
cd ${TESTDIR}; rm -rf RESULTS; ./PostProc.pl -M RESULTS
test_awsom_large_gpu_check:
-@(${DIFFNUM} -a=1e-19 -r=1e-5 -t \
${TESTDIR}/RESULTS/SC/log_n000500.log \
Param/CORONA/TestOutput/log_n000500.sc.awsom_large_gpu \
> test_awsom_large_gpu.diff)
ls -l test_awsom_large_gpu.diff
# TEST 1D CORONA WITH AWSOM-MULTIFLUID SETTING
test_awsomfluids:
@echo "test_awsomfluids_compile..." > test_awsomfluids.diff
$(MAKE) test_awsomfluids_compile
@echo "test_awsomfluids_rundir..." >> test_awsomfluids.diff
$(MAKE) test_awsomfluids_rundir
@echo "test_awsomfluids_run..." >> test_awsomfluids.diff
$(MAKE) test_awsomfluids_run
@echo "test_awsomfluids_check..." >> test_awsomfluids.diff
$(MAKE) test_awsomfluids_check
# Test fails on Pleiades with OpenMP
test_awsomfluids_compile:
./Config.pl -f -noopenmp -e=AwsomFluidsAnisoPi -u=AwsomIons -ng=2 -g=6,2,2
$(MAKE) BATSRUS
make PIDL
test_awsomfluids_rundir:
rm -rf ${TESTDIR}
$(MAKE) rundir RUNDIR=${TESTDIR} COMPONENT=SC STANDALONE=YES GMDIR=`pwd`
cd ${TESTDIR}; cp Param/CORONA/PARAM.in.AwsomFluids PARAM.in
cd ${TESTDIR}; cp ../data/CORONA/HeatPartition.dat.gz .
cd ${TESTDIR}; gunzip HeatPartition.dat.gz
-./TestParam.pl -F ${TESTDIR}/PARAM.in
test_awsomfluids_run:
cd ${TESTDIR}; ${MPIRUN} ./BATSRUS.exe > runlog
cd ${TESTDIR}; rm -rf RESULTS; ./PostProc.pl -M RESULTS
test_awsomfluids_check:
-@(${DIFFNUM} -a=1e-6 -r=1e-7 -t \
${TESTDIR}/RESULTS/SC/1d__mhd_1_n00000100.out \
Param/CORONA/TestOutput/1d__mhd_awsomfluids.out \
> test_awsomfluids.diff)
ls -l test_awsomfluids.diff
# TEST CORONA WITH CHARGE STATES
test_awsomchargestate:
@echo "test_awsomchargestate_compile..." > test_awsomchargestate.diff
$(MAKE) test_awsomchargestate_compile
@echo "test_awsomchargestate_rundir..." >> test_awsomchargestate.diff
$(MAKE) test_awsomchargestate_rundir
@echo "test_awsomchargestate_run..." >> test_awsomchargestate.diff
$(MAKE) test_awsomchargestate_run
@echo "test_awsomchargestate_check..." >> test_awsomchargestate.diff
$(MAKE) test_awsomchargestate_check
# Test fails on Pleiades with OpenMP
test_awsomchargestate_compile:
./Config.pl -noopenmp -e=AwsomChargeState -u=AwsomIons -ng=2 -g=6,8,8 -cs=o
$(MAKE) BATSRUS