Skip to content

Commit ce3e86e

Browse files
committed
Merge branch 'main' of https://github.com/microhh/rte-rrtmgp-cpp into main
2 parents c9422f4 + db5dc0b commit ce3e86e

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

include/Source_functions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Source_func_lw : public Optical_props
5151
Array<Float,2>& get_sfc_source() { return sfc_source; }
5252
Array<Float,2>& get_sfc_source_jac() { return sfc_source_jac; }
5353
Array<Float,3>& get_lay_source() { return lay_source; }
54-
Array<Float,3>& get_lev_source() { return lev_source; }
54+
Array<Float,3>& get_lev_source() { return lev_source; }
5555

5656
const Array<Float,2>& get_sfc_source() const { return sfc_source; }
5757
const Array<Float,2>& get_sfc_source_jac() const { return sfc_source_jac; }

src/Rte_lw.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,21 @@ void Rte_lw::rte_lw(
134134
const int n_gauss_angles)
135135
{
136136
const int max_gauss_pts = 4;
137+
138+
// Weights and angle secants for "Gauss-Jacobi-5" quadrature.
139+
// Values from Table 1, R. J. Hogan 2023, doi:10.1002/qj.4598
137140
const Array<Float,2> gauss_Ds(
138-
{ 1.66, 0., 0., 0.,
139-
1.18350343, 2.81649655, 0., 0.,
140-
1.09719858, 1.69338507, 4.70941630, 0.,
141-
1.06056257, 1.38282560, 2.40148179, 7.15513024},
141+
{ 1./0.6096748751, 0. , 0. , 0.,
142+
1./0.2509907356, 1/0.7908473988, 0. , 0.,
143+
1./0.1024922169, 1/0.4417960320, 1./0.8633751621, 0.,
144+
1./0.0454586727, 1/0.2322334416, 1./0.5740198775, 1./0.903077597 },
142145
{ max_gauss_pts, max_gauss_pts });
143146

144147
const Array<Float,2> gauss_wts(
145-
{ 0.5, 0., 0., 0.,
146-
0.3180413817, 0.1819586183, 0., 0.,
147-
0.2009319137, 0.2292411064, 0.0698269799, 0.,
148-
0.1355069134, 0.2034645680, 0.1298475476, 0.0311809710},
148+
{ 1., 0., 0., 0.,
149+
0.2300253764, 0.7699746236, 0., 0.,
150+
0.0437820218, 0.3875796738, 0.5686383044, 0.,
151+
0.0092068785, 0.1285704278, 0.4323381850, 0.4298845087 },
149152
{ max_gauss_pts, max_gauss_pts });
150153

151154
const int ncol = optical_props->get_ncol();

0 commit comments

Comments
 (0)