gray/tests/06-ITER-startup/outputs
Michele Guerini Rocco ae139410cb
src/gray_project.f90: preserve sign of J_φ in statistics
This makes the following changes to summary.7.txt:

1. Preserve the sign of J_φ_peak J_φ_max, i.e. if the J_φ is negative,
   those will be negative. Previously they would always be unsigned.

2. If the sign of J_φ is alternating significantly, specifically if
    (∫|J_φ|dA - |∫J_φ⋅dA|) / ∫|J_φ|dA > 10%
   then sign of ρ_avg_J, Δρ_avg_J, ρ_max_J, Δρ_max_J will be negative.
   Previously they were always positive.

3. If there is no current J_φ=0 (power dPdV=0), then
   ρ_avg_J=1, rho_max_J=1 (ρ_avg_P=1, rho_max_P=1).
   Previosuly they would be set to zero.
   This helps producing continuous results as a beam is gradually
   focused into the plasma.
2025-03-17 15:27:21 +01:00
..
mixed src/gray_project.f90: preserve sign of J_φ in statistics 2025-03-17 15:27:21 +01:00
x-mode src/gray_project.f90: preserve sign of J_φ in statistics 2025-03-17 15:27:21 +01:00