MCPcopy Create free account
hub / github.com/NanoComp/meep / is_equal

Method is_equal

src/sources.cpp:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119bool gaussian_src_time::is_equal(const src_time &t) const {
120 const gaussian_src_time *tp = dynamic_cast<const gaussian_src_time *>(&t);
121 if (tp)
122 return (tp->freq == freq && tp->width == width && tp->peak_time == peak_time &&
123 tp->cutoff == cutoff);
124 else
125 return 0;
126}
127
128complex<double> continuous_src_time::dipole(double time) const {
129 float rtime = float(time);

Callers 1

src_times_equalFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected