← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Changed from std::tr1::shared_ptr to boost::shared_ptr

 

Hello!

For all you PyDOLFIN users, this will most certainly break your code. 

You have to pull the newest ufc, when it gets updated, and remove the old 
installation of ufc residing in PREFIX/lib/python2.5/site-packages/ufc/.

You also have to pull the newest instant and ffc from the repositories when 
they get updated.

Johan

On Tuesday 13 January 2009 13:45:06 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:   5562:13cf76a0e015c88e3f0aca03191569d0a9e16486
> tag:         tip
> user:        "Johan Hake <hake@xxxxxxxxx>"
> date:        Tue Jan 13 13:44:28 2009 +0100
> files:       bench/fem/assembly/cpp/forms/Elasticity3D.h
> bench/fem/assembly/cpp/forms/NSEMomentum3D.h
> bench/fem/assembly/cpp/forms/Poisson2DP1.h
> bench/fem/assembly/cpp/forms/Poisson2DP2.h
> bench/fem/assembly/cpp/forms/Poisson2DP3.h
> bench/fem/assembly/cpp/forms/StabStokes2D.h
> bench/fem/assembly/cpp/forms/THStokes2D.h
> bench/fem/convergence/Poisson2D_1.h bench/fem/convergence/Poisson2D_2.h
> bench/fem/convergence/Poisson2D_3.h bench/fem/convergence/Poisson2D_4.h
> bench/fem/convergence/Poisson2D_5.h bench/fem/convergence/Poisson3D_1.h
> bench/fem/convergence/Poisson3D_2.h bench/fem/convergence/Poisson3D_3.h
> bench/fem/convergence/Poisson3D_4.h bench/fem/convergence/Poisson3D_5.h
> bench/fem/passembly/Nonlinear2D.h bench/fem/passembly/Poisson.h
> bench/fem/passembly/Poisson3D_1.h bench/la/sparse-matrix/Poisson.h
> bench/la/sparse-matrix/VectorPoisson.h
> demo/fem/assembly/cpp/ReactionDiffusion.h
> demo/function/eval/cpp/Projection.h
> demo/pde/advection-diffusion/cpp/AdvectionDiffusion.h
> demo/pde/bcs/cpp/Poisson.h demo/pde/cahn-hilliard/cpp/CahnHilliard2D.h
> demo/pde/cahn-hilliard/cpp/CahnHilliard3D.h
> demo/pde/dg/advection-diffusion/cpp/AdvectionDiffusion.h
> demo/pde/dg/advection-diffusion/cpp/Projection.h
> demo/pde/dg/poisson/cpp/P1Projection.h demo/pde/dg/poisson/cpp/Poisson.h
> demo/pde/elasticity/cpp/Elasticity.h demo/pde/functional/cpp/EnergyNorm.h
> demo/pde/lift-drag/cpp/Drag.h demo/pde/lift-drag/cpp/Lift.h
> demo/pde/mixed-poisson/cpp/MixedPoisson.h
> demo/pde/mixed-poisson/cpp/P1Projection.h
> demo/pde/nonlinear-poisson/cpp/NonlinearPoisson.h
> demo/pde/nonlinear-poisson/cpp/NonlinearPoisson.py
> demo/pde/periodic/cpp/Poisson.h demo/pde/poisson/cpp/Poisson.h
> demo/pde/poisson/python/demo.py demo/pde/poisson1D/cpp/Poisson.h
> demo/pde/stokes/stabilized/cpp/Stokes.h
> demo/pde/stokes/taylor-hood/cpp/Stokes.h
> demo/pde/sym-dirichlet-bc/cpp/Poisson.h demo/pde/waveguide/cpp/Forms.h
> demo/pde/waveguide/cpp/Forms.py dolfin/SConscript dolfin/ale/Poisson1D.h
> dolfin/ale/Poisson2D.h dolfin/ale/Poisson3D.h dolfin/common/NoDeleter.h
> dolfin/elements/ffc_L2proj_00.h dolfin/elements/ffc_L2proj_01.h
> dolfin/elements/ffc_L2proj_02.h dolfin/elements/ffc_L2proj_03.h
> dolfin/elements/ffc_L2proj_04.h dolfin/elements/ffc_L2proj_05.h
> dolfin/elements/ffc_L2proj_06.h dolfin/elements/ffc_L2proj_07.h
> dolfin/elements/ffc_L2proj_08.h dolfin/elements/ffc_L2proj_09.h
> dolfin/elements/ffc_L2proj_10.h dolfin/elements/ffc_L2proj_11.h
> dolfin/elements/ffc_L2proj_12.h dolfin/elements/ffc_L2proj_13.h
> dolfin/elements/ffc_L2proj_14.h dolfin/elements/ffc_L2proj_15.h
> dolfin/elements/ffc_L2proj_16.h dolfin/elements/ffc_L2proj_17.h
> dolfin/elements/ffc_L2proj_18.h dolfin/elements/ffc_L2proj_19.h
> dolfin/elements/ffc_L2proj_20.h dolfin/elements/ffc_L2proj_21.h
> dolfin/elements/ffc_L2proj_22.h dolfin/elements/ffc_L2proj_23.h
> dolfin/elements/ffc_L2proj_24.h dolfin/fem/BoundaryCondition.h
> dolfin/fem/DirichletBC.h dolfin/fem/DofMap.cpp dolfin/fem/DofMap.h
> dolfin/fem/FiniteElement.cpp dolfin/fem/FiniteElement.h dolfin/fem/Form.h
> dolfin/fem/PeriodicBC.h dolfin/fem/UFC.cpp dolfin/function/Coefficient.cpp
> dolfin/function/Coefficient.h dolfin/function/Function.cpp
> dolfin/function/Function.h dolfin/function/FunctionSpace.cpp
> dolfin/function/FunctionSpace.h dolfin/function/GenericFunction.h
> dolfin/function/SubSpace.cpp dolfin/io/XMLFile.cpp
> dolfin/io/XMLLocalMeshData.cpp dolfin/la/PETScKrylovMatrix.cpp
> dolfin/la/PETScMatrix.cpp dolfin/la/PETScMatrix.h
> dolfin/la/PETScPreconditioner.cpp dolfin/la/PETScVector.cpp
> dolfin/la/PETScVector.h dolfin/la/uBLASVector.cpp dolfin/la/uBLASVector.h
> dolfin/mf/ffc-forms/ConvectionMatrix2D.h
> dolfin/mf/ffc-forms/ConvectionMatrix3D.h dolfin/mf/ffc-forms/LoadVector2D.h
> dolfin/mf/ffc-forms/LoadVector3D.h dolfin/mf/ffc-forms/MassMatrix2D.h
> dolfin/mf/ffc-forms/MassMatrix3D.h dolfin/mf/ffc-forms/StiffnessMatrix2D.h
> dolfin/mf/ffc-forms/StiffnessMatrix3D.h dolfin/nls/NewtonSolver.h
> dolfin/swig/dolfin_docstrings.i dolfin/swig/dolfin_headers.i
> sandbox/ilmarw/assembler_bench/Elasticity_3D/Elasticity.h
> sandbox/ilmarw/assembler_bench/Elasticity_3D/Elasticity.py
> sandbox/ilmarw/assembler_bench/ICNS_3D_Momentum/NSEMomentum3D.h
> sandbox/ilmarw/assembler_bench/ICNS_3D_Momentum/NSEMomentum3D.py
> sandbox/ilmarw/assembler_bench/Laplace_2D/PoissonP1.h
> sandbox/ilmarw/assembler_bench/Laplace_2D/PoissonP1.py
> sandbox/ilmarw/assembler_bench/Laplace_2D/PoissonP2.h
> sandbox/ilmarw/assembler_bench/Laplace_2D/PoissonP2.py
> sandbox/ilmarw/assembler_bench/Laplace_2D/PoissonP3.h
> sandbox/ilmarw/assembler_bench/Laplace_2D/PoissonP3.py
> sandbox/ilmarw/assembler_bench/Stokes_2D_Stab/Stokes.h
> sandbox/ilmarw/assembler_bench/Stokes_2D_Stab/Stokes.py
> sandbox/ilmarw/assembler_bench/Stokes_2D_TH/Stokes.h
> sandbox/ilmarw/assembler_bench/Stokes_2D_TH/Stokes.py
> sandbox/ilmarw/test/Poisson.h sandbox/ilmarw/test/Poisson.py
> sandbox/la/hypre/Poisson.h sandbox/la/solve/Poisson.h
> sandbox/mtl4/mat_vec_mult_bench/NSEMomentum3D.h
> sandbox/mtl4/nse_bench/NSEMomentum3D.h sandbox/mtl4/op/Poisson.h
> sandbox/mtl4/poisson_bench/Poisson.h sandbox/mtl4/poisson_solve/Poisson.h
> sandbox/nonmatching/Simple.h sandbox/passembly-old/Poisson2D.h
> site-packages/dolfin_utils/wrappers/coefficient.py
> site-packages/dolfin_utils/wrappers/form.py
> site-packages/dolfin_utils/wrappers/functionspace.py
> test/unit/function/cpp/Projection.h description:
> Changed from std::tr1::shared_ptr to boost::shared_ptr
>
> Recompiled all forms using latest ffc, which also now use
> boost::shared_ptr.
>
>
> changeset:   5561:8f54a68140d4e303d3e0e1b02228967b9cfce572
> user:        "Johan Hake <hake@xxxxxxxxx>"
> date:        Tue Jan 13 13:42:47 2009 +0100
> files:       demo/la/trilinos/python/demo.py dolfin/la/EpetraMatrix.cpp
> dolfin/la/EpetraMatrix.h dolfin/la/EpetraVector.cpp
> dolfin/la/EpetraVector.h dolfin/swig/dolfin_la_post.i
> dolfin/swig/dolfin_la_pre.i description:
> Removed the ref_mat/_vec functions returning a reference to the
> underlying matrix/vector in EpetraMatrix/Vector.
>
> Added a wrapper function named mat/vec that dereference the shared_ptr
> so it will work in the python interface.
>
> Updated the la/trilinos/python demo. Using the new interface
>
>
> changeset:   5560:e956cd9b3f9db4947f437e42772a6b216731eb68
> user:        "Johan Hake <hake@xxxxxxxxx>"
> date:        Tue Jan 13 13:36:00 2009 +0100
> files:       dolfin/swig/dolfin.i dolfin/swig/dolfin_shared_ptr_classes.i
> site-packages/dolfin/compile_function.py
> site-packages/dolfin/functionspace.py description:
> Added shared_ptr support to PyDOLFIN.
>  - This requires a change from std::tr1::shared_ptr to boost::shared_ptr
>  - This also requires the latest version of ffc/ufc/instant
>
> ----------------------------------------------------------------------
> 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




References