Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2021-06-09 16:07:21

lc78
Member
Registered: 2011-09-28
Posts: 15

CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

Hello,

I have an issue using MFRONT with Code Aster 14.6. I compiled Code Aster 14.6 from the full source package 'aster-full-src-14.6.0-1.noarch.tar.gz'.

python3 setup.py install --prefix=/opt/aster/aster14.6.0

Everything seems to be ok. Also the installation of TFEL was successful. See the summary of installation. But when I call Code Aster it is reported that MFRONT is 'non disponible'. When I run a mfront test case like 'mfron01a' Code Aster cannot find 'mfront'.

Looking in setup.dbg I found the following message.

<DBG> Checking for TFELHOME variable        : /opt/aster/aster14.6.0/public/tfel-3.2.1
<DBG> Checking for program 'mfront'            : not found

Attached is the file setup.dbg for further information.

At the moment I do not have any idea where to look next. I hope somebody has an idea or hint how to proceed.

Best regards,

Michael

=====================================================

--------------------------------------------------------------------------------
     SUMMARY OF INSTALLATION
--------------------------------------------------------------------------------

Installation of   : hdf5 1.10.3
Destination       : /opt/aster/aster14.6.0/public/hdf5-1.10.3
Elapsed time      : 86.66 s
                                                                      [  OK  ]
Installation of   : med 4.0.0
Destination       : /opt/aster/aster14.6.0/public/med-4.0.0
Elapsed time      : 67.59 s
                                                                      [  OK  ]
Installation of   : scotch 6.0.4
Destination       : /opt/aster/aster14.6.0/public/scotch-6.0.4
Elapsed time      : 17.10 s
                                                                      [  OK  ]
Installation of   : astk 2020.0
Destination       : /opt/aster/aster14.6.0/lib/python3.6/site-packages
Elapsed time      : 0.36 s
                                                                      [  OK  ]
Installation of   : metis 5.1.0
Destination       : /opt/aster/aster14.6.0/public/metis-5.1.0
Elapsed time      : 18.94 s
                                                                      [  OK  ]
Installation of   : tfel 3.2.1
Destination       : /opt/aster/aster14.6.0/public/tfel-3.2.1
Elapsed time      : 146.99 s
                                                                      [  OK  ]
Installation of   : mumps 5.1.2
Destination       : /opt/aster/aster14.6.0/public/mumps-5.1.2
Elapsed time      : 73.22 s
                                                                      [  OK  ]
Installation of   : homard 11.12
Destination       : /opt/aster/aster14.6.0/public/homard-11.12
Elapsed time      : 1.83 s
                                                                      [  OK  ]
Installation of   : aster 14.6.0
Destination       : /opt/aster/aster14.6.0
Elapsed time      : 216.21 s
                                                                      [  OK  ]
Installation of   : Code_Aster + 9 of its prerequisites
Destination       : /opt/aster/aster14.6.0
Elapsed time      : 634.01 s
                                                                      [  OK  ]


... done

=====================================================

              -- CODE_ASTER -- VERSION : EXPLOITATION (stable) --               
                                                                               
                     Version 14.6.0 modifiée le 11/06/2020                     
                     révision b3490fa3b76c - branche 'v14'                     
                         Copyright EDF R&D 1991 - 2021                         
                                                                               
                    Exécution du : Wed Jun  9 15:18:45 2021                     
                          Nom de la machine : ganymed
                              Architecture : 64bit                             
                          Type de processeur : x86_64                           
Système d'exploitation : Linux-5.4.0-74-generic-x86_64-with-Ubuntu-18.04-bionic
                        Langue des messages : en (UTF-8)                       
                                                                               
                           Version de Python : 3.6.9                           
                           Version de NumPy : 1.13.3                           
                           Parallélisme MPI : inactif                           
                          Parallélisme OpenMP : actif                           
                        Nombre de processus utilisés : 1                       
                     Version de la librairie HDF5 : 1.10.3                     
                      Version de la librairie MED : 4.0.0                       
                       Librairie MFront : non disponible                       
                     Version de la librairie MUMPS : 5.1.2                     
                        Librairie PETSc : non disponible                       
                     Version de la librairie SCOTCH : 6.0.4

=====================================================

JDC.py : ERREUR A L'EXECUTION - INTERRUPTION
/opt/aster/aster14.6.0/14.6/lib/aster/aster_settings.py:262: DeprecationWarning: this command line option is deprecated : --rep_outils
  coreopts.parse_args(argv or sys.argv)
>> JDC.py : DEBUT RAPPORT
CR d'execution de JDC en MIXTE
   Etape : CREA_LIB_MFRONT    ligne : 25    fichier : 'fort.1'
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      ! Erreur dans la macro CREA_LIB_MFRONT                                              !
      ! Traceback (most recent call last):                                                !
      !    File "/opt/aster/aster14.6.0/14.6/lib/aster/Build/B_MACRO_ETAPE.py", line 114, !
      !  in _Build                                                                        !
      !     ier = self.definition.proc(*(self,), **d)                                     !
      !    File "/opt/aster/aster14.6.0/14.6/lib/aster/Noyau/N_OPS.py", line 35, in       !
      ! __call__                                                                          !
      !     return func(*args, **kwargs)                                                  !
      !    File "/opt/aster/aster14.6.0/14.6/lib/aster/Macro/crea_lib_mfront_ops.py",     !
      ! line 48, in crea_lib_mfront_ops                                                   !
      !     call(cmd)                                                                     !
      !    File "/usr/lib/python3.6/subprocess.py", line 287, in call                     !
      !     with Popen(*popenargs, **kwargs) as p:                                        !
      !    File "/usr/lib/python3.6/subprocess.py", line 729, in __init__                 !
      !     restore_signals, start_new_session)                                           !
      !    File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child          !
      !     raise child_exception_type(errno_num, err_msg, err_filename)                  !
      !  FileNotFoundError: [Errno 2] No such file or directory: 'mfront': 'mfront'       !
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      ! Erreurs dans la construction de la macro CREA_LIB_MFRONT !
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   Fin Etape : CREA_LIB_MFRONT
fin CR d'execution de JDC en MIXTE

>> JDC.py : FIN RAPPORT
EXECUTION_CODE_ASTER_EXIT_21726=1
<INFO> Code_Aster run ended, diagnostic : <F>_ABNORMAL_ABORT

=====================================================


Attachments:
setup.dbg.zip, Size: 366.68 KiB, Downloads: 21

Offline

#2 2021-06-09 16:43:05

thomas.helfer
Member
Registered: 2013-09-26
Posts: 120

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

Hi,
would you give me the return of:

ls /opt/aster/aster14.6.0/public/tfel-3.2.1/bin

Best,

Thomas

Offline

#3 2021-06-09 17:43:42

lc78
Member
Registered: 2011-09-28
Posts: 15

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

Hello Thomas,

thank you for your response.

Content of /opt/aster/aster14.6.0/public/tfel-3.2.1/bin:

-rwxr-xr-x 1 ca ca 228960 Jun  9 15:33 mfm-3.2.1
-rwxr-xr-x 1 ca ca  14208 Jun  9 15:34 mfront-3.2.1
-rwxr-xr-x 1 ca ca 125208 Jun  9 15:34 mfront-doc-3.2.1
-rwxr-xr-x 1 ca ca 326688 Jun  9 15:34 mfront-query-3.2.1
-rwxr-xr-x 1 ca ca  69256 Jun  9 15:34 mtest-3.2.1
-rwxr-xr-x 1 ca ca 524832 Jun  9 15:33 tfel-check-3.2.1
-rwxr-xr-x 1 ca ca  44616 Jun  9 15:32 tfel-config-3.2.1
-rwxr-xr-x 1 ca ca 205936 Jun  9 15:34 tfel-doc-3.2.1

Michael

Offline

#4 2021-06-09 17:52:05

thomas.helfer
Member
Registered: 2013-09-26
Posts: 120

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

maybe you could try to make a link between mfront and mfront-3.2.1

$ ln -s /opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront-3.2.1 /opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront

Offline

#5 2021-06-09 18:40:45

lc78
Member
Registered: 2011-09-28
Posts: 15

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

I set the symbolic link but it does not change the behaviour.

I have built on the same machine version 15.2. With 15.2 MFRONT is found.

Offline

#6 2021-06-09 19:01:00

thomas.helfer
Member
Registered: 2013-09-26
Posts: 120

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

So the error is still "mfront, file not found" (or something similar ?)

What about:

$  ls -l /opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront


$  file /opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront

Offline

#7 2021-06-09 19:24:40

lc78
Member
Registered: 2011-09-28
Posts: 15

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

ls -l /opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront:

lrwxrwxrwx 1 ca ca 57 Jun  9 19:31 /opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront -> /opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront-3.2.1

file /opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront:

/opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront: symbolic link to /opt/aster/aster14.6.0/public/tfel-3.2.1/bin/mfront-3.2.1

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I looked deeper into the code. There is a file crea_lib_mfront_ops.py which calls MFRONT as far as I understand. It uses subprocess to call MFRONT on the os level. Here I found a significant difference between 14.6 and 15.2.

CA 14.6:  crea_lib_mfront_ops.py

line 39:    cmd = [aster_core.get_option('prog:mfront'),"--build","--interface=aster"]

aster_core.get_option('prog:mfront') returns: mfront

CA 15.2: crea_lib_mfront_ops.py

line 39;     cmd = [ExecutionParameter().get_option('prog:mfront'),"--build","--interface=aster"]

ExecutionParameter().get_option('prog:mfront') returns: /opt/aster/aster15.2.0-gnu/public/tfel-3.2.1/bin/mfront-3.2.1

V 14.6 returns just 'mfront' while CA does not know where to find it. In 15.2 the absolute path is returned.

Last edited by lc78 (2021-06-09 19:29:17)

Offline

#8 2021-06-09 19:40:28

thomas.helfer
Member
Registered: 2013-09-26
Posts: 120

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

Could you try to update the PATH at the beginning of your code_aster script ?

Offline

#9 2021-06-09 19:56:43

lc78
Member
Registered: 2011-09-28
Posts: 15

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

With the updated $PATH mfront is found via the symbolic link.

'as_run --vers=14.6 --test mfron01a' runs sucessfully.

Of course this does not change the message after invoking Code Aster.

...
Librairie MFront : non disponible
...

Offline

#10 2021-06-09 19:59:17

thomas.helfer
Member
Registered: 2013-09-26
Posts: 120

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

lc78 wrote:

Of course this does not change the message after invoking Code Aster.

...
Librairie MFront : non disponible
...

Sorry. Shall we consider that we have found a woraround or not ?

Offline

#11 2021-06-09 20:18:11

lc78
Member
Registered: 2011-09-28
Posts: 15

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

It is a suitable workaround. It is ok for me at the moment.

I wonder about the cause that crea_lib_mfront_ops.py does not return the abs path to the mfront executable. Does this depend on the linux distribution? I use kubuntu 18.04. Maybe I have the chance in the next days to compile under openSUSE to see how CA behaves.

Thank you very much for your assistance.

Offline

#12 2021-06-09 20:25:38

thomas.helfer
Member
Registered: 2013-09-26
Posts: 120

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

Hi,
Can't answer you question right now. Maybe the code_aster devs may help smile
Thomas

Offline

#13 2021-06-09 20:38:42

lc78
Member
Registered: 2011-09-28
Posts: 15

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

Hi Thomas,

yes, maybe the developers can help.

Behaviour is the same under kubuntu 20.04. CA 14.6 returns  just mfront. CA 15.2 returns the abs path to the mfront executable.

Thanks again for the discussion,

Michael

Offline

#14 2021-06-10 17:16:59

lc78
Member
Registered: 2011-09-28
Posts: 15

Re: CA 14.6 and MFRONT: Compiling TFEL is ok but MFRONT 'non disponible'

Further tests with kubuntu 18.04. Ca 14.4 fails, CA 14.2 works well.

CA 14.4:  crea_lib_mfront_ops.py
'prog:mfront' returns: mfront

CA 14.2:  crea_lib_mfront_ops.py
'prog:mfront' returns: /opt/aster/aster14.2.0/public/tfel-3.1.1/bin/mfront

Offline