commit 4fd6838ffd6074a4ac86493bf492747fe0c1751e
parent 690d806f57f4bdbd0771117a29ab971d4f57387d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 13 Feb 2026 12:20:49 +0100
Rm of certain obsolete assertions on the wavenumer
A wavenumber can now be negative, because since validation e667ad2,
lines are no longer truncated at the positive spectral range.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sln.h b/src/sln.h
@@ -358,7 +358,7 @@ sln_compute_line_half_width_doppler
* sqrt(2*log(2)*kb*Na)/c */
const double sqrt_two_ln2_kb_Na_over_c = 1.1324431552553545042e-08;
const double gamma_d = nu * sqrt_two_ln2_kb_Na_over_c * sqrt(temperature/molar_mass);
- ASSERT(nu > 0 && temperature >= 0 && molar_mass > 0);
+ ASSERT(temperature >= 0 && molar_mass > 0);
return gamma_d;
}
diff --git a/src/sln_line.c b/src/sln_line.c
@@ -163,7 +163,7 @@ regular_mesh
const double step = spectral_length / (double)nvertices;
size_t ivtx;
res_T res = RES_OK;
- ASSERT(wavenumber >= 0 && spectral_length > 0 && wavenumbers);
+ ASSERT(spectral_length > 0 && wavenumbers);
FOR_EACH(ivtx, 0, nvertices) {
const double nu = wavenumber + (double)ivtx*step;