From 39d1943b3c2acf2e8d44bcd22faf19ad1d7b3380 Mon Sep 17 00:00:00 2001 From: Jordan Iga Date: Tue, 7 May 2024 15:53:48 +0100 Subject: [PATCH] CB72 n<2 getDln fix --- src/CB72.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CB72.jl b/src/CB72.jl index 7324bc2..b5d0e1c 100755 --- a/src/CB72.jl +++ b/src/CB72.jl @@ -280,7 +280,11 @@ function getDln(basis::CB72Basis, ##### # # Deduce density basis elements at azimuthal number l without prefactors ##### - Dln = u2 - u0 + if n<2 + Dln = u2 + else + Dln = u2 - u0 + end ##### # Adding prefactors #####