[aspect-devel] Kludges in ASPECT
jperryh2 at uoregon.edu
Fri Oct 31 15:36:21 PDT 2014
-----BEGIN PGP SIGNED MESSAGE-----
On 10/31/2014 02:56 PM, Wolfgang Bangerth wrote:
> I'd just make all of the members of Simulator public. Basically
> everything you do in plugins is in classes that derive from
> SimulatorAccess, so if you do
> const_cast<Simulator<dim>&>(this->get_simulator()) then you have a
> writable reference to the simulator object and you can access all
> of its member variables (because you've made them public).
> Not pretty, but works.
> Best W.
That's awesome. I know it's object-oriented blasphemy, but it's super
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the Aspect-devel