diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-08-24 23:03:50 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-08-24 23:03:50 -0400 |
commit | 3bf4461fb7255b88a90a274132cf63f7576d9b7c (patch) | |
tree | 29b68b6f2b7b1571e5e54dded6bf4c13a2bb4d1a | |
parent | a5e94f0c56f2388b4edbd8b73250ccb41e0bf674 (diff) | |
download | Nresonances-3bf4461fb7255b88a90a274132cf63f7576d9b7c.tar.gz Nresonances-3bf4461fb7255b88a90a274132cf63f7576d9b7c.zip |
Zero level shift function modified
-rw-r--r-- | xmds2/Genas_system/Genas_system.xmds | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/xmds2/Genas_system/Genas_system.xmds b/xmds2/Genas_system/Genas_system.xmds index 24cc2b4..e032b48 100644 --- a/xmds2/Genas_system/Genas_system.xmds +++ b/xmds2/Genas_system/Genas_system.xmds @@ -72,12 +72,7 @@ double delta0z(double z) { // calculates detuning/shift of exited m=0 sublevel as a function of z double delta; - // printf("z=%g \t delta0= %g\n", z, delta0); - if (z <= 0.09) { - delta = 1.0*delta0; - } else { - delta = -1.0*delta0; - } + delta = ( atan(100*(1.0-2.*z/zmax))/pi*2 )*delta0; return delta; } ]]> |