We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
INIT_BC
It's not possible to name a template parameter as I want when I use INIT_BC macro.
template <class Field_t> struct Dirichlet : public Bc<Field_t> { INIT_BC(Dirichlet) void apply(Field_t& f, const cell_t& cell_out, const cell_t& cell_in, const value_t& value) const override { f[cell_out] = 2 * value - f[cell_in]; } };
Give template parameter Field (or Field_t in this example) to INIT_BC macro.
Field
Field_t
#define INIT_BC(NAME, FIELD) \ using base_t = samurai::Bc<FIELD>; \ using cell_t = typename base_t::cell_t; \ using value_t = typename base_t::value_t; \ using base_t::Bc; \ \ std::unique_ptr<base_t> clone() const override \ { \ return std::make_unique<NAME>(*this); \ }
INIT_BC(Dirichlet, Field_t)
Mac OS
from source
0.x.x
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
It's not possible to name a template parameter as I want when I use
INIT_BC
macro.Input code
What expected?
Give template parameter
Field
(orField_t
in this example) toINIT_BC
macro.What is your operating system?
Mac OS
How did you install our software?
from source
Software version
0.x.x
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: