dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #01159
Re: PyDOLFIN: [...]
On Tue, Oct 11, 2005 at 02:44:53PM +0200, dolfin@xxxxxxxxxx wrote:
> Commit from johanjan (2005-10-11 14:44 CEST)
> --------------------
>
> PyDOLFIN:
>
> Added a harmonic oscillator as a test, produces reasonable
> results. Minor cleanups. DOLFIN's Settings don't work yet, likely some
> problems with varargs (might not be supported by SWIG).
If we can't get varargs to work, we can probably remove it. We can
still have a single function
dolfin_set(const char* string, Type value);
where we overload on Type.
But it would be good if SWIG could handle the automatic casting from
dolfin_get():
real TOL = dolfin_get("tolerance");
bool solve_dual = dolfin_get("solve dual problem");
/Anders
References