Skip to content

Commit be21e0f

Browse files
Made initialisation level the first model level, for the rest we leave the defaults intact (#172)
1 parent 932d4e6 commit be21e0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/class/src/fire.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,13 @@ export function calculatePlume(
148148
const { dz } = plumeConfig;
149149
let parcel = initializeFireParcel(bg, fire);
150150
const plume: Parcel[] = [parcel];
151+
plume.push(parcel);
151152

152153
// Constant fractional entrainment and detrainment with height above surface layer
153154
const epsi = plumeConfig.fac_ent / Math.sqrt(parcel.area);
154155
const delt = epsi / plumeConfig.beta;
155156

156-
for (let i = 1; i < bg.z.length; i++) {
157+
for (let i = 2; i < bg.z.length; i++) {
157158
const z = bg.z[i];
158159

159160
// Mass flux through plume

0 commit comments

Comments
 (0)