Skip to content

Commit b25db54

Browse files
committed
evolve_energy: fix copy-paste error in source check
Was checking if energy_source was set twice, rather than checking for momentum_source
1 parent 1dba3ec commit b25db54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/evolve_energy.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ void EvolveEnergy::finally(const Options& state) {
336336
if (species.isSet("energy_source")) {
337337
Se += get<Field3D>(species["energy_source"]); // For diagnostic output
338338
}
339-
if (species.isSet("energy_source")) {
339+
if (species.isSet("momentum_source")) {
340340
Se += V * get<Field3D>(species["momentum_source"]);
341341
}
342342
ddt(E) += Se;

0 commit comments

Comments
 (0)