Skip to content

Commit

Permalink
fixing the order in stack simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
LemurPwned committed Jul 28, 2024
1 parent 07b0acc commit 01d27c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmtj/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def gaussianImpulseDriver(
Formula:
$A * \exp(-(t - t_0)^2 / (2\sigma^2))$
$A \exp(-(t - t_0)^2 / (2\sigma^2))$
:param constantValue: offset of the pulse (vertical)
:param amplitude: amplitude that is added on top of the constantValue
Expand Down
15 changes: 8 additions & 7 deletions core/stack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,17 @@ template <typename T> class Stack {
if (this->delayed) {
// accumulate coupling
effectiveCoupling *= (1 + this->getEffectiveCouplingStrength(
j - 1, frozenMags[j],
frozenMags[j - 1], frozenPols[j]));
j - 1, frozenMags[j - 1],
frozenMags[j], frozenPols[j - 1]));

} else {
effectiveCoupling *=
(1 +
this->getEffectiveCouplingStrength(
j - 1, junctionList[j].getLayerMagnetisation(this->topId),
junctionList[j - 1].getLayerMagnetisation(this->topId),
junctionList[j].getLayerMagnetisation(this->bottomId)));
(1 + this->getEffectiveCouplingStrength(
j - 1,
junctionList[j - 1].getLayerMagnetisation(this->topId),
junctionList[j].getLayerMagnetisation(this->topId),
junctionList[j - 1].getLayerMagnetisation(
this->bottomId)));
}
}

Expand Down

0 comments on commit 01d27c7

Please sign in to comment.