← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Add missing function to PETScLUSolver.cpp.

 

We can replace all the

  if (foo)
    delete foo;

with just

  delete foo;

delete may safely be called with NULL pointers (as someone recently
educated me).

-- 
Anders


On Fri, Oct 03, 2008 at 10:46:33AM +0200, DOLFIN wrote:
> One or more new changesets pushed to the primary dolfin repository.
> A short summary of the last three changesets is included below.
> 
> changeset:   4866:5a45bed780ffcc1f36a6112a9703ed8a39d87163
> tag:         tip
> user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
> date:        Fri Oct 03 09:46:22 2008 +0100
> files:       dolfin/la/PETScLUSolver.cpp
> description:
> Add missing function to PETScLUSolver.cpp.
> 
> 
> changeset:   4865:f41e62a369b9e74b97f46559b6b522b5d4d97110
> parent:      4863:a4f8e9d77afcbdf185b7aec9deb1986d8bf66e4d
> parent:      4864:21dc8f6a4256e9880dd8a6ba63766e3780f2ddc9
> user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
> date:        Fri Oct 03 09:40:30 2008 +0100
> files:       
> description:
> merge.
> 
> 
> changeset:   4864:21dc8f6a4256e9880dd8a6ba63766e3780f2ddc9
> parent:      4854:64d0492dc42183a221ec839078b8f82402524301
> user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
> date:        Fri Oct 03 09:40:05 2008 +0100
> files:       demo/pde/convection-diffusion/cpp/main.cpp dolfin/la/PETScLUSolver.cpp dolfin/la/PETScLUSolver.h
> description:
> Fix bug in PETScLUSolver.
> 
> ----------------------------------------------------------------------
> For more details, visit http://www.fenics.org/hg/dolfin
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev

Attachment: signature.asc
Description: Digital signature


References