Windows : can't use temporary file when .med are used
In windows version .med temporary file and .slf must be defined or the script return an error :
- temporary .slf and defined .med:
Salome call
C:\SALOME-9.7.0\W64\Python\python.exe C:\SALOME-9.7.0\salome -t C:\Users\jmker\AppData\Roaming\QGIS\QGIS3\profiles\q4ts_repository\python\plugins\q4ts\salome_script\salome_script.py args:create_mesh,C:\Users\jmker\AppData\Local\Temp\tmpe9ivs8dd.shp,-dx,50.0,-min,25.0,-max,100.0,C:/Users/jmker/.q4ts/geopackage/temp.med,--mesh_engine,netgen_1d_2d
Searching for a free port for naming service: 2810 - OK
runSalome running on DESKTOP-08G5COV
Searching Naming Service found in 0.0 seconds
Searching /Registry in Naming Service +
found in 0.5 seconds
Searching /Kernel/ModulCatalog in Naming Service +
th. 0000003DFCBFFAC0 - Trace e:\s\salome-9.7.0\sources\kernel\src\modulecatalog\salome_modulecatalog_server.cxx [98] : Module Catalog Server: Naming Service was found
found in 0.5 seconds
RunStudy
Searching /Study in Naming Service +
found in 0.5 seconds
Searching /Containers/DESKTOP-08G5COV/FactoryServer in Naming Service +
+
Warning, no type found for resource "
localhost", using default value "single_machine"
Salome available ? True
Telemac available ? False
Searching for a free port for naming service: 2811 - OK
Salome available ? True
Telemac available ? False
runSalome running on DESKTOP-08G5COV
Searching /Registry in Naming Service found in 0.0 seconds
Searching /Kernel/ModulCatalog in Naming Service found in 0.0 seconds
RunStudy
Searching /Study in Naming Service found in 0.0 seconds
Searching /Containers/DESKTOP-08G5COV/FactoryServer in Naming Service found in 0.0 seconds
Start SALOME, elapsed time : 0.0 seconds
=> Information: fiona Python package is not available
Telemac shapefile implementation will be used instead
model before section [<GEOM._objref_GEOM_Object object at 0x000002826F047B00>]
model before mesh [<GEOM._objref_GEOM_Object object at 0x000002826F047B00>]
dependencies [<GEOM._objref_GEOM_Object object at 0x000002826F047A58>]
dependencies after constraints [<GEOM._objref_GEOM_Object object at 0x000002826F047A58>]
dependencies before meshing [<GEOM._objref_GEOM_Object object at 0x000002826F047B38>]
Writting C:/Users/jmker/.q4ts/geopackage/temp.med
th. 0
th. 0000
th. 000000385D4FFAF0 - Trace e:\s\salome-9.7.0\sources\kernel\src\namingservice\salome_namingservice.cxx [1410] : CORBA::SystemException: unable to contact the naming service
th. 00000
found in 1.0 seconds
Start SALOME, elapsed time : 0.0 seconds
Salome call
C:\SALOME-9.7.0\W64\Python\python.exe C:\SALOME-9.7.0\salome killall
Telemac script call
C:\Users\jmker\AppData\Roaming\QGIS\QGIS3\profiles\q4ts_repository\python\plugins\q4ts\processing\script_telemac_env.bat C:\dev\telemac_12_22\telamac_main\telemac-mascaret\configs\pysource.win.bat converter.py med2srf C:/Users/jmker/.q4ts/geopackage/temp.med C:/Users/jmker/AppData/Local/Temp/processing_rEJmyq/0fb934f39acc4476a651bbffcfef3857/OUTPUT_MESH.slf
med2srf C:/Users/jmker/.q4ts/geopackage/temp.med C:/Users/jmker/AppData/Local/Temp/processing_rEJmyq/0fb934f39acc4476a651bbffcfef3857/OUTPUT_MESH.slf
~> Checking keyword/rubrique coherence
Calling: stbtel.py stb.cas --mpi
Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
___ ____
/ _ \ |___ \
__ __| (_) | _ __ __) |
\ \ / / > _ < | '_ \ |__ <
\ V / | (_) || |_) | ___) |
\_/ \___/ | .__/ |____/
| |
|_|
Running your CAS file(s) for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
win:
+> Windows static build using Mingw and MS-MPI
+> root: C:\dev\telemac_12_22\telamac_main\telemac-mascaret
+> module: ad / api / artemis / bief
damocles / gaia / gretel / hermes
identify_liq_bnd / khione / mascaret / nestor
parallel / partel / postel3d / sisyphe
special / stbtel / telemac2d / telemac3d
tomawac / waqtel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... processing the steering file
~> Checking keyword/rubrique coherence
Traceback (most recent call last):
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\stbtel.py", line 7, in <module>
main('stbtel')
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\runcode.py", line 279, in main
run_study(cas_file, code_name, options)
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\execution\run_cas.py", line 166, in run_study
options.w_dir)
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\execution\study.py", line 130, in __init__
self.cas = TelemacCas(self.steering_file, self.dico_file)
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\execution\telemac_cas.py", line 110, in __init__
self._check_content()
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\execution\telemac_cas.py", line 255, in _check_content
.format(key, self.file_name))
utils.exceptions.TelemacException: Unknown keyword 'C in steering file stb.cas
Résultats: {}
- defined .slf and temporary .med:
Salome call
C:\SALOME-9.7.0\W64\Python\python.exe C:\SALOME-9.7.0\salome -t C:\Users\jmker\AppData\Roaming\QGIS\QGIS3\profiles\q4ts_repository\python\plugins\q4ts\salome_script\salome_script.py args:create_mesh,C:\Users\jmker\AppData\Local\Temp\tmpwldyzmcm.shp,-dx,50.0,-min,25.0,-max,100.0,C:/Users/jmker/AppData/Local/Temp/processing_rEJmyq/dfc00ab9b1524230a79bc08374fab6ca/TEMP_MED.med,--mesh_engine,netgen_1d_2d
Searching for a free port for naming service: 2810 - OK
runSalome running on DESKTOP-08G5COV
Searching Naming Service found in 0.0 seconds
Searching /Registry in Naming Service +
found in 0.5 seconds
Searching /Kernel/ModulCatalog in Naming Service +
th.
0000005
2DB6FFBF0 - Trace e:\s\salome-9.7.0\sources\kernel\src\modulecatalog\salome_modulecatalog_server.cxx [98] : Module Catalog Server: Naming Service was found
found in 0.5 seconds
RunStudy
Searching /Study in Naming Service +
found in 0.5 seconds
Searching /Containers/DESKTOP-08G5COV/FactoryServer in Naming Service +
+
Warning, no type found for resource "localhost", using default value "
single_machine"
Salome available ? True
Telemac available ? False
Searching for a free port for naming service: 2811 - OK
Salome available ? True
Telemac available ? False
runSalome running on DESKTOP-08G5COV
Searching /Registry in Naming Service found in 0.0 seconds
Searching /Kernel/ModulCatalog in Naming Service found in 0.0 seconds
RunStudy
Searching /Study in Naming Service found in 0.0 seconds
Searching /Containers/DESKTOP-08G5COV/FactoryServer in Naming Service found in 0.0 seconds
Start SALOME, elapsed time : 0.0 seconds
=> Information: fiona Python package is not available
Telemac shapefile implementation will be used instead
model before section [<GEOM._objref_GEOM_Object object at 0x00000264B8077B00>]
model before mesh [<GEOM._objref_GEOM_Object object at 0x00000264B8077B00>]
dependencies [<GEOM._objref_GEOM_Object object at 0x00000264B8077A58>]
dependencies after constraints [<GEOM._objref_GEOM_Object object at 0x00000264B8077A58>]
dependencies before meshing [<GEOM._objref_GEOM_Object object at 0x00000264B8077B38>]
Writting C:/Users/jmker/AppData/Local/Temp/processing_rEJmyq/dfc00ab9b1524230a79bc08374fab6ca/TEMP_MED.med
th.
found in 1.0 seconds
Start SALOME, elapsed time : 0.0 seconds
Salome call
C:\SALOME-9.7.0\W64\Python\python.exe C:\SALOME-9.7.0\salome killall
Telemac script call
C:\Users\jmker\AppData\Roaming\QGIS\QGIS3\profiles\q4ts_repository\python\plugins\q4ts\processing\script_telemac_env.bat C:\dev\telemac_12_22\telamac_main\telemac-mascaret\configs\pysource.win.bat converter.py med2srf C:/Users/jmker/AppData/Local/Temp/processing_rEJmyq/dfc00ab9b1524230a79bc08374fab6ca/TEMP_MED.med C:/Users/jmker/.q4ts/geopackage/create_mesh.slf
med2srf C:/Users/jmker/AppData/Local/Temp/processing_rEJmyq/dfc00ab9b1524230a79bc08374fab6ca/TEMP_MED.med C:/Users/jmker/.q4ts/geopackage/create_mesh.slf
~> Checking keyword/rubrique coherence
Calling: stbtel.py stb.cas --mpi
Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
___ ____
/ _ \ |___ \
__ __| (_) | _ __ __) |
\ \ / / > _ < | '_ \ |__ <
\ V / | (_) || |_) | ___) |
\_/ \___/ | .__/ |____/
| |
|_|
Running your CAS file(s) for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
win:
+> Windows static build using Mingw and MS-MPI
+> root: C:\dev\telemac_12_22\telamac_main\telemac-mascaret
+> module: ad / api / artemis / bief
damocles / gaia / gretel / hermes
identify_liq_bnd / khione / mascaret / nestor
parallel / partel / postel3d / sisyphe
special / stbtel / telemac2d / telemac3d
tomawac / waqtel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... processing the steering file
~> Checking keyword/rubrique coherence
Traceback (most recent call last):
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\stbtel.py", line 7, in <module>
main('stbtel')
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\runcode.py", line 279, in main
run_study(cas_file, code_name, options)
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\execution\run_cas.py", line 166, in run_study
options.w_dir)
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\execution\study.py", line 130, in __init__
self.cas = TelemacCas(self.steering_file, self.dico_file)
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\execution\telemac_cas.py", line 110, in __init__
self._check_content()
File "C:\dev\telemac_12_22\telamac_main\telemac-mascaret\scripts\python3\execution\telemac_cas.py", line 255, in _check_content
.format(key, self.file_name))
utils.exceptions.TelemacException: Unknown keyword SERAFIN' OUTPUT FILE in steering file stb.cas
Résultats: {}