From ef5b5c66e573f242439630fab433a9b40d1008e9 Mon Sep 17 00:00:00 2001
From: Antoine Hoffmann <antoine.hoffmann@epfl.ch>
Date: Fri, 31 Mar 2023 13:43:45 +0200
Subject: [PATCH] reorganizing the testcates

---
 testcases/cyclone_example/fort_00.90          |  9 +++--
 .../zpinch_example/{fort.90 => fort_00.90}    | 38 ++++++++++---------
 testcases/zpinch_example/gyacomo23_debug      |  1 +
 testcases/zpinch_example/gyacomo23_dp         |  1 +
 testcases/zpinch_example/gyacomo23_sp         |  1 +
 testcases/zpinch_example/gyacomo_debug        |  1 -
 6 files changed, 29 insertions(+), 22 deletions(-)
 rename testcases/zpinch_example/{fort.90 => fort_00.90} (73%)
 create mode 120000 testcases/zpinch_example/gyacomo23_debug
 create mode 120000 testcases/zpinch_example/gyacomo23_dp
 create mode 120000 testcases/zpinch_example/gyacomo23_sp
 delete mode 120000 testcases/zpinch_example/gyacomo_debug

diff --git a/testcases/cyclone_example/fort_00.90 b/testcases/cyclone_example/fort_00.90
index dcbde60a..c4d16a14 100644
--- a/testcases/cyclone_example/fort_00.90
+++ b/testcases/cyclone_example/fort_00.90
@@ -47,9 +47,6 @@
   write_temp  = .t.
 /
 &MODEL_PAR
-  ! Collisionality
-  CLOS    = 0
-  NL_CLOS = 0
   LINEARITY = 'nonlinear'
   Na      = 1 ! number of species
   mu_x    = 1.0
@@ -64,6 +61,12 @@
   ADIAB_E = .t.
   tau_e   = 1.0
 /
+&CLOSURE_PAR
+  hierarchy_closure='truncation'
+  dmax = -1
+  nonlinear_closure='truncation'
+  nmax = 0
+/
 &SPECIES
  ! ions
  name_ = 'ions'
diff --git a/testcases/zpinch_example/fort.90 b/testcases/zpinch_example/fort_00.90
similarity index 73%
rename from testcases/zpinch_example/fort.90
rename to testcases/zpinch_example/fort_00.90
index ee9320ef..b02fe749 100644
--- a/testcases/zpinch_example/fort.90
+++ b/testcases/zpinch_example/fort_00.90
@@ -1,8 +1,8 @@
 &BASIC
   nrun       = 99999999
   dt         = 0.01
-  tmax       = 10
-  maxruntime = 356400
+  tmax       = 50
+  maxruntime = 72000
   job2load   = -1
 /
 &GRID
@@ -18,9 +18,9 @@
 /
 &GEOMETRY
   geom   = 'Z-pinch'
-  q0     = 0.0
-  shear  = 0.0
-  eps    = 0.0
+  q0     = 1.4
+  shear  = 0.8
+  eps    = 0.18
   kappa  = 1.0
   s_kappa= 0.0
   delta  = 0.0
@@ -31,11 +31,11 @@
   shift_y= 0.0
 /
 &OUTPUT_PAR
-  dtsave_0d = 0.1
+  dtsave_0d = 1
   dtsave_1d = -1
   dtsave_2d = -1
-  dtsave_3d = 1
-  dtsave_5d = 10
+  dtsave_3d = 5
+  dtsave_5d = 20
   write_doubleprecision = .f.
   write_gamma = .t.
   write_hf    = .t.
@@ -47,9 +47,6 @@
   write_temp  = .t.
 /
 &MODEL_PAR
-  ! Collisionality
-  CLOS    = 0
-  NL_CLOS = -1
   LINEARITY = 'nonlinear'
   Na      = 2 ! number of species
   mu_x    = 1.0
@@ -60,10 +57,16 @@
   mu_p    = 0.0
   mu_j    = 0.0
   nu      = 0.1
-  beta    = 0.01
+  beta    = 0.0
   ADIAB_E = .f.
   tau_e   = 1.0
 /
+&CLOSURE_PAR
+  hierarchy_closure='truncation'
+  dmax = -1
+  nonlinear_closure='anti_laguerre_aliasing' !(truncation,full_sum,anti_laguerre_aliasing)
+  nmax = 0
+/
 &SPECIES
  ! ions
  name_ = 'ions'
@@ -78,22 +81,21 @@
  name_ = 'electrons'
  tau_  = 1.0
  sigma_= 0.023338
- q_    = -1.0
+ q_    =-1.0
  k_N_  = 2.0
  k_T_  = 0.4
 /
-
 &COLLISION_PAR
-  collision_model = 'SG' !DG/SG/PA/LD (dougherty, sugama, pitch angle, landau)
+  collision_model = 'DG' !DG/SG/PA/LD (dougherty, sugama, pitch angle, landau)
   GK_CO           = .t.
   INTERSPECIES    = .true.
   mat_file       = 'gk_sugama_P_20_J_10_N_150_kpm_8.0.h5'
 /
 &INITIAL_CON
-  INIT_OPT         = 'phi'
+  INIT_OPT         = 'phi' !(phi,blob)
   ACT_ON_MODES     = 'donothing'
-  init_background  = 0.005
-  init_noiselvl    = 0.00
+  init_background  = 0.0
+  init_noiselvl    = 0.005
   iseed            = 42
 /
 &TIME_INTEGRATION_PAR
diff --git a/testcases/zpinch_example/gyacomo23_debug b/testcases/zpinch_example/gyacomo23_debug
new file mode 120000
index 00000000..dcb6f58d
--- /dev/null
+++ b/testcases/zpinch_example/gyacomo23_debug
@@ -0,0 +1 @@
+../../bin/gyacomo23_debug
\ No newline at end of file
diff --git a/testcases/zpinch_example/gyacomo23_dp b/testcases/zpinch_example/gyacomo23_dp
new file mode 120000
index 00000000..f11ab935
--- /dev/null
+++ b/testcases/zpinch_example/gyacomo23_dp
@@ -0,0 +1 @@
+../../bin/gyacomo23_dp
\ No newline at end of file
diff --git a/testcases/zpinch_example/gyacomo23_sp b/testcases/zpinch_example/gyacomo23_sp
new file mode 120000
index 00000000..d3982f65
--- /dev/null
+++ b/testcases/zpinch_example/gyacomo23_sp
@@ -0,0 +1 @@
+../../bin/gyacomo23_sp
\ No newline at end of file
diff --git a/testcases/zpinch_example/gyacomo_debug b/testcases/zpinch_example/gyacomo_debug
deleted file mode 120000
index 363e139a..00000000
--- a/testcases/zpinch_example/gyacomo_debug
+++ /dev/null
@@ -1 +0,0 @@
-../../bin/gyacomo_debug
\ No newline at end of file
-- 
GitLab