Skip to content

Commit e78a19a

Browse files
authored
Merge pull request #356 from jgray-19/mult_fixes
Fix Multipole Shortcut
2 parents edfa5f8 + 0b54828 commit e78a19a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mad_dynmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ inline void strex_kicks (mflw_t *m, num_t lw, P &p, T &pz)
476476
template <typename P, typename T=P::T>
477477
inline void strex_kickhs (mflw_t *m, num_t lw, int is)
478478
{ (void)is;
479-
if (!m->nmul == 0 || !m->ksi) return;
479+
if (!m->nmul && !m->ksi) return;
480480
mdump(0);
481481
num_t wchg = lw*m->sdir*m->edir*m->charge;
482482
T bx, by;

0 commit comments

Comments
 (0)