gray/src
Michele Guerini Rocco fadf1ac7c7
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-20 11:31:28 +01:00
..
vendor src: remove unnecessary one, zero uses 2024-11-04 12:00:16 +01:00
beamdata.f90 src/gray_core: refactor ic_gb 2024-11-03 09:19:22 +01:00
beams.f90 remove unnecessary deallocations 2024-11-04 12:05:50 +01:00
const_and_precisions.f90 remove unnecessary implicit statements 2024-02-09 11:16:18 +01:00
dispersion.f90 detect propagation past a cutoff 2025-03-20 11:21:34 +01:00
eccd.f90 remove unnecessary deallocations 2024-11-04 12:05:50 +01:00
gray_cli.f90 remove unnecessary deallocations 2024-11-04 12:05:50 +01:00
gray_core.f90 detect propagation past a cutoff 2025-03-20 11:21:34 +01:00
gray_equil.f90 src/gray_equil.f90: export COCOS subroutines 2024-12-03 16:09:30 +01:00
gray_errors.f90 detect propagation past a cutoff 2025-03-20 11:21:34 +01:00
gray_jetto1beam.f90 replace pec module with an object 2024-11-04 12:05:26 +01:00
gray_params.awk src/gray_params.f90: replace magic numbers with enums 2024-02-09 11:16:18 +01:00
gray_params.f90 replace pec module with an object 2024-11-04 12:05:26 +01:00
gray_plasma.f90 src: remove unnecessary one, zero uses 2024-11-04 12:00:16 +01:00
gray_project.f90 src/gray_project.f90: preserve sign of J_φ in statistics 2025-03-20 11:31:28 +01:00
gray_tables.f90 src/gray_tables.f90: kinetic_profiles increase points 2025-02-10 10:31:20 +01:00
ini_parser.f90 remove unnecessary deallocations 2024-11-04 12:05:50 +01:00
logger.f90 add support for intel compilers 2024-11-04 12:00:19 +01:00
main_convert.f90 remove unnecessary deallocations 2024-11-04 12:05:50 +01:00
main.f90 replace pec module with an object 2024-11-04 12:05:26 +01:00
math.f90 remove unnecessary implicit statements 2024-02-09 11:16:18 +01:00
multipass.f90 src/magsurf_data.f90: cleanup 2024-11-04 12:00:20 +01:00
polarization.f90 document the wave polarisation convention 2024-11-09 21:19:45 +01:00
reflections.f90 src: remove unnecessary one, zero uses 2024-11-04 12:00:16 +01:00
splines.f90 remove unnecessary deallocations 2024-11-04 12:05:50 +01:00
types.f90 src/gray_tables: fix memory error with disabled table 2024-11-03 09:19:22 +01:00
utils.f90 replace pec module with an object 2024-11-04 12:05:26 +01:00