dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #05882
Re: command line arguments
On Sat, Jan 05, 2008 at 09:49:12PM -0500, Gideon Simpson wrote:
> Is there an easy way to restore petsc command line argument functionality to
> dolfin based applications?
>
> -Gideon Simpson
> Department of Applied Physics and Applied Mathematics
> Columbia University
Yes:
int main(int argc, char* argv[])
{
dolfin_init(argc, argv);
...
}
dolfin_init() will send all the command-line arguments to PETSc (and
do nothing more).
We should probably change the name to just dolfin::init() instead of
dolfin::dolfin_init().
--
Anders
References