Quantcast

[OF] fem-fenics

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[OF] fem-fenics

JuanPi
Hi all,

What's the status of this package? I am unable to install it even if I
follow the instructions in the wiki [1].
The error I get is

Makefile_common:31: recipe for target 'Mesh.o' failed
ar rUv libfemfenics_factories.a PETSc_factory.o
a - PETSc_factory.o
ranlib libfemfenics_factories.a
rm PETSc_factory.o femfenics_factory.o
make[1]: Leaving directory '/tmp/oct-IBg7RZ/fem-fenics/src'
make: Leaving directory '/tmp/oct-IBg7RZ/fem-fenics/src'

If I try to compile outside of source tree from the repository I get
make: *** No rule to make target 'Mesh.cc', needed by 'Mesh.o'.  Stop.

If I compile in the source tree I get

Mesh.cc: In function ‘octave_value
compute_facet_markers(std::shared_ptr<const dolfin::Mesh>, const
Array<int>&, std::size_t)’:
Mesh.cc:430:38: error: invalid initialization of reference of type
‘const std::vector<long unsigned int>&’ from expression of type ‘const
std::vector<long int>’
     _msh->topology ().global_indices (0);
                                      ^
Mesh.cc:432:38: error: invalid initialization of reference of type
‘const std::vector<long unsigned int>&’ from expression of type ‘const
std::vector<long int>’
     _msh->topology ().global_indices (D - 1);
                                      ^
Mesh.cc: In function ‘octave_value
compute_cell_markers(std::shared_ptr<const dolfin::Mesh>, const
Array<int>&, std::size_t)’:
Mesh.cc:530:38: error: invalid initialization of reference of type
‘const std::vector<long unsigned int>&’ from expression of type ‘const
std::vector<long int>’
     _msh->topology ().global_indices (0);
                                      ^
Mesh.cc:532:38: error: invalid initialization of reference of type
‘const std::vector<long unsigned int>&’ from expression of type ‘const
std::vector<long int>’
     _msh->topology ().global_indices (D);
                                      ^
Makefile_common:31: recipe for target 'Mesh.o' failed
make: *** [Mesh.o] Error 1

[1]: http://wiki.octave.org/Fem-fenics#Known_issues

--
JuanPi Carbajal
https://goo.gl/ayiJzi
Public GnuPG key: 9C5B72BF
-----
"Why is thought, being a secretion of the brain, more wonderful than
gravity, a property of matter?"
- C. Darwin

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [OF] fem-fenics

arnaudl
If youh had read the mentioned topic, you woul see that:
"
Trying to find a solution, I found a change between dolfin version 1.3.0
(required for last fem-fenics package ) and the stable one installed
with apt-get (2016.2.0).
MeshTopology.h :
--> dolfin version 1.3.0 untl version 2016.1.0

const std::vector< std::size_t > & global_indices(std::size_t d) const

--> dolfin version 2016.2.0

const std::vector< std::int64_t > & global_indices(std::size_t d) const
***************************************************************************

Then I think it's really a bug and one has to change Mesh.cc in the fem-fenics sources.

So I go back to 2016.1.0

"


Le 17/05/2017 11:40, JuanPi a écrit :

> Hi,
>
> I am compiling from source, so pkg is not involved.
>
> Cheers
>
>
> On Wed, May 17, 2017 at 11:31 AM, Arnaud Lejeune
> <[hidden email]> wrote:
>> hi,
>>
>> Did you look at the topic "problem with "pkg -forge fem-fenics"" ?
>>
>>
>>
>>
>>
>>
>> Le 17/05/2017 10:59, JuanPi a écrit :
>>> Hi all,
>>>
>>> What's the status of this package? I am unable to install it even if I
>>> follow the instructions in the wiki [1].
>>> The error I get is
>>>
>>> Makefile_common:31: recipe for target 'Mesh.o' failed
>>> ar rUv libfemfenics_factories.a PETSc_factory.o
>>> a - PETSc_factory.o
>>> ranlib libfemfenics_factories.a
>>> rm PETSc_factory.o femfenics_factory.o
>>> make[1]: Leaving directory '/tmp/oct-IBg7RZ/fem-fenics/src'
>>> make: Leaving directory '/tmp/oct-IBg7RZ/fem-fenics/src'
>>>
>>> If I try to compile outside of source tree from the repository I get
>>> make: *** No rule to make target 'Mesh.cc', needed by 'Mesh.o'.  Stop.
>>>
>>> If I compile in the source tree I get
>>>
>>> Mesh.cc: In function ‘octave_value
>>> compute_facet_markers(std::shared_ptr<const dolfin::Mesh>, const
>>> Array<int>&, std::size_t)’:
>>> Mesh.cc:430:38: error: invalid initialization of reference of type
>>> ‘const std::vector<long unsigned int>&’ from expression of type ‘const
>>> std::vector<long int>’
>>>        _msh->topology ().global_indices (0);
>>>                                         ^
>>> Mesh.cc:432:38: error: invalid initialization of reference of type
>>> ‘const std::vector<long unsigned int>&’ from expression of type ‘const
>>> std::vector<long int>’
>>>        _msh->topology ().global_indices (D - 1);
>>>                                         ^
>>> Mesh.cc: In function ‘octave_value
>>> compute_cell_markers(std::shared_ptr<const dolfin::Mesh>, const
>>> Array<int>&, std::size_t)’:
>>> Mesh.cc:530:38: error: invalid initialization of reference of type
>>> ‘const std::vector<long unsigned int>&’ from expression of type ‘const
>>> std::vector<long int>’
>>>        _msh->topology ().global_indices (0);
>>>                                         ^
>>> Mesh.cc:532:38: error: invalid initialization of reference of type
>>> ‘const std::vector<long unsigned int>&’ from expression of type ‘const
>>> std::vector<long int>’
>>>        _msh->topology ().global_indices (D);
>>>                                         ^
>>> Makefile_common:31: recipe for target 'Mesh.o' failed
>>> make: *** [Mesh.o] Error 1
>>>
>>> [1]: http://wiki.octave.org/Fem-fenics#Known_issues
>>>
>>
>> --
>> Arnaud LEJEUNE
>> Ingénieur de Recherche
>> Responsable Pôle Calcul Scientifique
>> Departement Mec'Appli/Institut FEMTO-ST
>>
>> 24 chemin de l'epitaphe
>> 25000 BESANCON
>> tel : +(33)3 81 66 60 24
>> fax : +(33)3 81 66 67 00
>> mail: [hidden email]
>>
>
>


--
Arnaud LEJEUNE
Ingénieur de Recherche
Responsable Pôle Calcul Scientifique
Departement Mec'Appli/Institut FEMTO-ST

24 chemin de l'epitaphe
25000 BESANCON
tel : +(33)3 81 66 60 24
fax : +(33)3 81 66 67 00
mail: [hidden email]


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [OF] fem-fenics

JuanPi
On Wed, May 17, 2017 at 11:48 AM, Arnaud Lejeune
<[hidden email]> wrote:

> If youh had read the mentioned topic, you woul see that:
> "
> Trying to find a solution, I found a change between dolfin version 1.3.0
> (required for last fem-fenics package ) and the stable one installed with
> apt-get (2016.2.0).
> MeshTopology.h :
> --> dolfin version 1.3.0 untl version 2016.1.0
>
> const std::vector< std::size_t > & global_indices(std::size_t d) const
>
> --> dolfin version 2016.2.0
>
> const std::vector< std::int64_t > & global_indices(std::size_t d) const
> ***************************************************************************
>
> Then I think it's really a bug and one has to change Mesh.cc in the
> fem-fenics sources.
>
> So I go back to 2016.1.0
>
>
> "
>
>
> Le 17/05/2017 11:40, JuanPi a écrit :
>>
>> Hi,
>>
>> I am compiling from source, so pkg is not involved.
>>
>> Cheers
>>
>>
>> On Wed, May 17, 2017 at 11:31 AM, Arnaud Lejeune
>> <[hidden email]> wrote:
>>>
>>> hi,
>>>
>>> Did you look at the topic "problem with "pkg -forge fem-fenics"" ?
>>>
>>>
>>>
>>>
>>>
>>>
>>> Le 17/05/2017 10:59, JuanPi a écrit :
>>>>
>>>> Hi all,
>>>>
>>>> What's the status of this package? I am unable to install it even if I
>>>> follow the instructions in the wiki [1].
>>>> The error I get is
>>>>
>>>> Makefile_common:31: recipe for target 'Mesh.o' failed
>>>> ar rUv libfemfenics_factories.a PETSc_factory.o
>>>> a - PETSc_factory.o
>>>> ranlib libfemfenics_factories.a
>>>> rm PETSc_factory.o femfenics_factory.o
>>>> make[1]: Leaving directory '/tmp/oct-IBg7RZ/fem-fenics/src'
>>>> make: Leaving directory '/tmp/oct-IBg7RZ/fem-fenics/src'
>>>>
>>>> If I try to compile outside of source tree from the repository I get
>>>> make: *** No rule to make target 'Mesh.cc', needed by 'Mesh.o'.  Stop.
>>>>
>>>> If I compile in the source tree I get
>>>>
>>>> Mesh.cc: In function ‘octave_value
>>>> compute_facet_markers(std::shared_ptr<const dolfin::Mesh>, const
>>>> Array<int>&, std::size_t)’:
>>>> Mesh.cc:430:38: error: invalid initialization of reference of type
>>>> ‘const std::vector<long unsigned int>&’ from expression of type ‘const
>>>> std::vector<long int>’
>>>>        _msh->topology ().global_indices (0);
>>>>                                         ^
>>>> Mesh.cc:432:38: error: invalid initialization of reference of type
>>>> ‘const std::vector<long unsigned int>&’ from expression of type ‘const
>>>> std::vector<long int>’
>>>>        _msh->topology ().global_indices (D - 1);
>>>>                                         ^
>>>> Mesh.cc: In function ‘octave_value
>>>> compute_cell_markers(std::shared_ptr<const dolfin::Mesh>, const
>>>> Array<int>&, std::size_t)’:
>>>> Mesh.cc:530:38: error: invalid initialization of reference of type
>>>> ‘const std::vector<long unsigned int>&’ from expression of type ‘const
>>>> std::vector<long int>’
>>>>        _msh->topology ().global_indices (0);
>>>>                                         ^
>>>> Mesh.cc:532:38: error: invalid initialization of reference of type
>>>> ‘const std::vector<long unsigned int>&’ from expression of type ‘const
>>>> std::vector<long int>’
>>>>        _msh->topology ().global_indices (D);
>>>>                                         ^
>>>> Makefile_common:31: recipe for target 'Mesh.o' failed
>>>> make: *** [Mesh.o] Error 1
>>>>
>>>> [1]: http://wiki.octave.org/Fem-fenics#Known_issues
>>>>
>>>
>>> --
>>> Arnaud LEJEUNE
>>> Ingénieur de Recherche
>>> Responsable Pôle Calcul Scientifique
>>> Departement Mec'Appli/Institut FEMTO-ST
>>>
>>> 24 chemin de l'epitaphe
>>> 25000 BESANCON
>>> tel : +(33)3 81 66 60 24
>>> fax : +(33)3 81 66 67 00
>>> mail: [hidden email]
>>>
>>
>>
>
>
> --
> Arnaud LEJEUNE
> Ingénieur de Recherche
> Responsable Pôle Calcul Scientifique
> Departement Mec'Appli/Institut FEMTO-ST
>
> 24 chemin de l'epitaphe
> 25000 BESANCON
> tel : +(33)3 81 66 60 24
> fax : +(33)3 81 66 67 00
> mail: [hidden email]
>

You did not provide a link to the topic and I do not find it easily in
the wiki (if you meant that, the context of my question was the wiki).
If the topic "problems with pkg ..." is not pkg specific then it
should have another title.

I guess we need to open an item in the bug tracker. Will do it if you
send a link to the "topic"

Cheers

--
JuanPi Carbajal
https://goo.gl/ayiJzi
Public GnuPG key: 9C5B72BF
-----
"Why is thought, being a secretion of the brain, more wonderful than
gravity, a property of matter?"
- C. Darwin

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Loading...