installation Salome+CS+Syrthes via VM on ubuntu 15.10

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by jgd23 »

I try now the solution of Oliveira77 in the same post.
I create a text file named CS_salome.sh

#!/bin/bash

source /home/julien/salome/appli_V7_6_0/env.d/envProducts.sh
export LD_PRELOAD=$LD_PRELOAD:/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
//home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/bin/code_saturne salome

exit 0

I execute this. It launch CFD study in salome.

I have a new error when I check mesh or when I try to compute

/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/libexec/code_saturne/cs_solver was built without XML support,
so parameter file "cs_cmd" may not be loaded.

Can you help me with this please?

Best regards

Julien
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by Yvan Fournier »

Hello,

You need to install the libxml2-dev (or similarly-named) package on your Linux distribution, and re-run the Code_Saturne installation process.

Regards,

Yvan
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by jgd23 »

Hello Yvan,

Thank you again

I try to install every packages of libxml that I found on the synaptic, rerun code saturne installation and same errors occurs when I check the mesh. I try to launch code saturne salome without the script CS_salome.sh -> I have the xml error and with the script -> I have the gfortran_1.4 error

I try to build code saturne with required version of libxml2-2.9.2 and specify the path in the set up file of code saturne. Run installation of code saturne without error. But same problem occurs when I want to check the mesh. I try to launch code saturne salome without the script CS_salome.sh -> I have the xml error and with the script -> I have the gfortran_1.4 error

Other ideas?

Best regards

Julien
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by jgd23 »

Mistake, I mean
I try to launch code saturne salome without the script CS_salome.sh -> I have the gfortran_1.4 error and with the script -> I have the xml error

sorry
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by jgd23 »

When I try code saturne in stand alone mode, I don't have any error for the mesh checking. But I can't run calculation

my terminal:
julien@julien-VirtualBox:~/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/bin$ ./code_saturne gui
Traceback (most recent call last):
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningView.py", line 684, in slotNProcs
self.jmdl.updateBatchFile('run_nprocs')
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningModel.py", line 733, in updateBatchFile
self.updateBatchEnvVars()
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningModel.py", line 644, in updateBatchEnvVars
batch_lines = self.case['runcase'].lines
AttributeError: 'NoneType' object has no attribute 'lines'
Traceback (most recent call last):
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningView.py", line 684, in slotNProcs
self.jmdl.updateBatchFile('run_nprocs')
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningModel.py", line 733, in updateBatchFile
self.updateBatchEnvVars()
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningModel.py", line 644, in updateBatchEnvVars
batch_lines = self.case['runcase'].lines
AttributeError: 'NoneType' object has no attribute 'lines'
Traceback (most recent call last):
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningView.py", line 730, in slotBatchRunning
os.chdir(self.case['scripts_path'])
OSError: [Errno 2] Aucun fichier ou dossier de ce type: ''
Traceback (most recent call last):
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningView.py", line 684, in slotNProcs
self.jmdl.updateBatchFile('run_nprocs')
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningModel.py", line 733, in updateBatchFile
self.updateBatchEnvVars()
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningModel.py", line 644, in updateBatchEnvVars
batch_lines = self.case['runcase'].lines
AttributeError: 'NoneType' object has no attribute 'lines'
Traceback (most recent call last):
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningView.py", line 730, in slotBatchRunning
os.chdir(self.case['scripts_path'])
OSError: [Errno 2] Aucun fichier ou dossier de ce type: ''
Traceback (most recent call last):
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningView.py", line 684, in slotNProcs
self.jmdl.updateBatchFile('run_nprocs')
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningModel.py", line 733, in updateBatchFile
self.updateBatchEnvVars()
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningModel.py", line 644, in updateBatchEnvVars
batch_lines = self.case['runcase'].lines
AttributeError: 'NoneType' object has no attribute 'lines'
Traceback (most recent call last):
File "/home/julien/Code_Saturne/4.0.5/code_saturne-4.0.5/arch/Linux_x86_64/lib/python2.7/site-packages/code_saturne/Pages/BatchRunningView.py", line 730, in slotBatchRunning
os.chdir(self.case['scripts_path'])
OSError: [Errno 2] Aucun fichier ou dossier de ce type: ''


... ?

Best regards

Julien
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by Yvan Fournier »

Hello,

Could you try running SCRIPTS/runcase directly ?

Regards,

Yvan
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by jgd23 »

Hello,

Sorry but how can I do that? You talk about Code saturne sand alone?

Best regards

Julien
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by Yvan Fournier »

Hello,

Did you manage to create a new case, or do you have the crash before ? If you have rhe crash immediately, I recommend reocing the previous install and reinstalling (stand-alone).

Regards,

Yvan
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by jgd23 »

Hello Yvan,

I create a new case. Load the mesh, check the mesh (I can't record the check mesh log). I use a check mesh log created with salome to apply BC. I configure the case, I save the xml file and try to compute and I have the error that told you in the previous post.

Best regards

Julien
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: installation Salome+CS+Syrthes via VM on ubuntu 15.10

Post by Yvan Fournier »

Hello,

Once you have saved the case, your case directory structure should include a file named "runcase" in the SCRIPTS case subdirectory. Could you try to run it directly (i.e. in a terminal or through a file manager) ? Otherwise, what do you have in the SCRIPTS directory ?

Regards,

Yvan
Post Reply