Go to the documentation of this file.
23 #ifndef COM_DAFER45_TBTK_SOURCE_AMPLITUDE
24 #define COM_DAFER45_TBTK_SOURCE_AMPLITUDE
30 #include <initializer_list>
89 const std::string &serializeation,
125 std::complex<double> amplitude;
140 if(amplitudeCallback)
153 + std::to_string(real(amplitude))
154 +
", " + std::to_string(imag(amplitude))
std::complex< double > getAmplitude() const
Definition: SourceAmplitude.h:139
SourceAmplitude()
Definition: SourceAmplitude.h:136
std::string toString() const
Definition: Index.h:349
unsigned int getSizeInBytes() const
Definition: Index.h:548
Definition: Serializable.h:43
Definition: SourceAmplitude.h:44
Source amplitude for equations with a source term.
Definition: SourceAmplitude.h:40
Abstract base class for serializable objects.
virtual std::complex< double > getSourceAmplitude(const Index &index) const =0
unsigned int getSizeInBytes() const
Definition: SourceAmplitude.h:161
std::string serialize(Serializable::Mode mode) const
std::string toString() const
Definition: SourceAmplitude.h:150
Mode
Definition: Serializable.h:47
const Index & getIndex() const
Definition: SourceAmplitude.h:146
Physical index.
Definition: Index.h:44