On Wed, Jan 28, 2015 at 9:04 AM, Palraj J <[email protected]> wrote:
> Again i am getting error like
>
> File "/home/palraj/Desktop/work/cbc/pdesys/PDESubSystems.py", line 909, in
> info_green
> if MPI.rank()==0:
> File "/usr/lib/python2.7/dist-packages/dolfin/cpp/common.py", line 542, in
> rank
> return _common.MPI_rank(*args)
> TypeError: MPI_rank() takes exactly one argument (0 given)
>
Oops, I forgot the communicator. For MPI_COMM_WORLD, use
MPI.rank(mpi_comm_world())
Garth
> thanks
>
> On Wed, Jan 28, 2015 at 2:21 PM, Garth N. Wells <[email protected]> wrote:
>>
>>
>>
>> On Wed Jan 28 2015 at 08:48:13 Palraj J <[email protected]> wrote:
>>>
>>>
>>> Lastly I update the latest version of fenics while I am running old
>>> program I am getting the following error
>>
>>
>> Change MPI::process_number() -> MPI::rank()
>>
>> Garth
>>
>>>
>>> bcs=bc, reassemble_lhs=False)
>>> File "/home/palraj/Desktop/work/cbc/pdesys/PDESubSystems.py", line 324,
>>> in init
>>> PDESubSystemBase.init(self, solver_namespace, sub_system, bcs, normalize,
>>> **kwargs)
>>> File "/home/palraj/Desktop/work/cbc/pdesys/PDESubSystems.py", line 61, in
>>> __init__
>>> self.query_args(sub_system)
>>> File "/home/palraj/Desktop/work/cbc/pdesys/PDESubSystems.py", line 99, in
>>> query_args
>>> self.work = self.get_work_vector()
>>> File "/home/palraj/Desktop/work/cbc/pdesys/PDESubSystems.py", line 288,
>>> in get_work_vector
>>> info_green('Creating new work vector for {0:s}'.format(self.name))
>>> File "/home/palraj/Desktop/work/cbc/pdesys/PDESubSystems.py", line 909,
>>> in info_green
>>> if MPI.process_number()==0:
>>> AttributeError: type object 'MPI' has no attribute 'process_number'
>>>
>>> --
>>> J. Palraj,
>>> Research Scholar,
>>> Department of Mathematics,
>>> PSG College of Arts & Science,
>>> Coimbatore - 641 014,
>>> Tamilnadu, India.
>>> _______________________________________________
>>> fenics-support mailing list
>>> [email protected]
>>> http://fenicsproject.org/mailman/listinfo/fenics-support
>
>
>
>
> --
> J. Palraj,
> Research Scholar,
> Department of Mathematics,
> PSG College of Arts & Science,
> Coimbatore - 641 014,
> Tamilnadu, India.
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support