Documentation for TimeSeriesHDF5

Issue #345 resolved
Davide Lasagna created an issue

Hi,

apparently, the documentation for TimeSeriesHDF5 seems wrong. Essentially, one argument should be provided but the constructor fails as shown below.

I am using latest vagrant box, with version 1.4.0.

In [9]: from dolfin import *

In [10]: TimeSeriesHDF5("here.hdf5")
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-10-b3b4149b3a71> in <module>()
----> 1 TimeSeriesHDF5("here.hdf5")

/usr/lib/python2.7/dist-packages/dolfin/cpp/fem.pyc in __init__(self, *args)
   3972
   3973         """
-> 3974         _fem.TimeSeriesHDF5_swiginit(self,_fem.new_TimeSeriesHDF5(*args))
   3975     __swig_destroy__ = _fem.delete_TimeSeriesHDF5
   3976     def store(self, *args):

TypeError: new_TimeSeriesHDF5 expected 2 arguments, got 1

Thanks,

Davide

Comments (6)

  1. Johannes Ring

    Yes, the documentation needs to be updated. The first argument should be an MPI communicator. For instance, this should work:

    TimeSeriesHDF5(mpi_comm_world(), "name")
    
  2. Log in to comment