From: pascale.noyret Date: Tue, 23 Oct 2018 11:58:44 +0000 (+0200) Subject: menage X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8776f8aad1f0b96793454b3d11c18d214d787a0e;p=tools%2Feficas.git menage --- diff --git a/Adao/README_CATALOGUE.txt b/Adao/README_CATALOGUE.txt deleted file mode 100644 index f4d3dbd0..00000000 --- a/Adao/README_CATALOGUE.txt +++ /dev/null @@ -1,4 +0,0 @@ -#-*-coding:iso-8859-1-*- -# -Les catalogues presents dans cette directory sont des catalogues de tests. -Le catalogue final utilisé dans le module Adao de Salome peut être différent diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 164af95d..00000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,157 +0,0 @@ -# -*- coding: utf-8 -*- -# CONFIGURATION MANAGEMENT OF EDF VERSION -# ====================================================================== -# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG -# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY -# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY -# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR -# (AT YOUR OPTION) ANY LATER VERSION. -# -# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT -# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF -# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU -# GENERAL PUBLIC LICENSE FOR MORE DETAILS. -# -# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE -# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER, -# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. -# -# -# ====================================================================== - -cmake_minimum_required ( VERSION 2.8 ) - -project ( Eficas CXX C ) - -# Definition du chemin d'acces aux modules additionnels -set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules" ) - -# Detection de Python -find_package ( PythonInterp REQUIRED ) -if (PYTHONINTERP_FOUND) - string ( RANDOM tmpPyScript ) - set ( tmpPyScript "${tmpPyScript}.py" ) - file ( WRITE ${tmpPyScript} -"# Automaticaly generated by CMake. Do NOT edit. Changes will be lost -import sys -print ('%d.%d' % ( sys.version_info[0], sys.version_info[1] )) -" ) - get_source_file_property ( PYSCRIPT_LOC ${tmpPyScript} LOCATION ) - execute_process ( COMMAND ${PYTHON_EXECUTABLE} ${PYSCRIPT_LOC} - OUTPUT_VARIABLE PYTHON_VERSION - #ERROR_QUIET - OUTPUT_STRIP_TRAILING_WHITESPACE ) - file ( REMOVE ${tmpPyScript} ) -endif (PYTHONINTERP_FOUND) -message ( STATUS "Using Python version ${PYTHON_VERSION}" ) -# Detection de QT5 -find_package ( Qt5 COMPONENTS Core REQUIRED ) - -FIND_PACKAGE(Qt5LinguistTools) -GET_TARGET_PROPERTY(QT_LRELEASE_EXECUTABLE Qt5::lrelease LOCATION) -MARK_AS_ADVANCED(QT_LRELEASE_EXECUTABLE) - -# Detection de PyQt5 -if (NOT PYQT5_FOUND) - execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "\"import PyQt5\"" - RESULT_VARIABLE _res - OUTPUT_VARIABLE _trashout - ERROR_VARIABLE _trasherr - ) - if (NOT _res) - message ( STATUS "Looking for Python package PyQt5 - found" ) - set ( PYQT5_FOUND 1 CACHE INTERNAL "True if Python package PyQt5 is here" ) - else (NOT _res) - message ( STATUS "Looking for Python package PyQt5 - not found" ) - set ( PYQT5_FOUND 0 CACHE INTERNAL "True if Python package PyQt5 is here" ) - endif (NOT _res) -endif (NOT PYQT5_FOUND) - -if (NOT PYQT5_FOUND) - message ( FATAL_ERROR "Python package PyQt5 is REQUIRED" ) -endif (NOT PYQT5_FOUND) - -# Detection de PYUIC5 -find_program ( PYUIC5 NAMES pyuic5 - DOC "Path to the pyuic5 compilation tool" - ) -if (NOT PYUIC5) - message ( FATAL_ERROR "pyuic5 tool is REQUIRED" ) -endif (NOT PYUIC5) - -# Definition des options de CMake -option ( WITH_ALL_PACKAGES "Install all package files" OFF ) -option ( WITH_CARMEL "Install CARMEL files" OFF ) -option ( WITH_SEP "Install SEP files" OFF ) -option ( WITH_ZCRACKS "Install ZCRACKS files" OFF ) -option ( WITH_TELEMAC_CATA "Install TELEMAC files" OFF ) -option ( IN_SALOME_CONTEXT "Configure Eficas for use in Salome" OFF ) - -set ( _OPTIONLIST - WITH_CARMEL - WITH_TELEMAC_CATA - ) - -if (WITH_ALL_PACKAGES) - foreach ( _opt ${_OPTIONLIST} ) - set ( ${_opt} ON ) - endforeach ( _opt ) -endif (WITH_ALL_PACKAGES) - - -# Verification: au moins une option doit etre selectionnee -set ( _VALIDOPT FALSE ) -foreach ( _opt ${_OPTIONLIST} ) - if ( ${_opt} ) - set ( _VALIDOPT TRUE ) - string ( REPLACE WITH_ "" _opt2 ${_opt} ) - message ( STATUS "Will install package ${_opt2}" ) - endif ( ${_opt} ) -endforeach ( _opt ) -if ( NOT ${_VALIDOPT} ) - message ( FATAL_ERROR "At least one option within ${_OPTIONLIST} must be selected" ) -endif ( NOT ${_VALIDOPT} ) - - - -# Parcours recursif des sous-repertoires -add_subdirectory ( Accas ) -add_subdirectory ( Aide ) -add_subdirectory ( Editeur ) -add_subdirectory ( Efi2Xsd ) -add_subdirectory ( Extensions ) -add_subdirectory ( Ihm ) -install ( DIRECTORY InterfaceQT4 DESTINATION ${CMAKE_INSTALL_PREFIX} ) -add_subdirectory ( Noyau ) -add_subdirectory ( UiQT5 ) -add_subdirectory ( Validation ) -add_subdirectory ( convert ) -add_subdirectory ( generator ) -add_subdirectory ( Traducteur ) - - -# Installation des fichiers : CARMEL -if (WITH_CARMEL) - add_subdirectory ( Carmel3D ) - add_subdirectory ( CarmelCND ) - add_subdirectory ( CarmelCS ) -endif (WITH_CARMEL) - - -# Installation des fichiers : ZCracks -if (WITH_ZCRACKS) - add_subdirectory ( ZCracks ) -endif (WITH_ZCRACKS) - -# Installation des fichiers : Telemac -if (WITH_TELEMAC_CATA) - add_subdirectory ( Telemac ) -endif (WITH_TELEMAC_CATA) - -if (BUILD_DOC) - add_subdirectory ( Doc ) -endif (BUILD_DOC) - -### Local Variables: -### mode: cmake -### End: diff --git a/CMakeModules/FindOpenTURNS.cmake b/CMakeModules/FindOpenTURNS.cmake deleted file mode 100644 index c16a56e6..00000000 --- a/CMakeModules/FindOpenTURNS.cmake +++ /dev/null @@ -1,235 +0,0 @@ -# - Try to find OpenTURNS -# Once done this will define -# -# OpenTURNS_FOUND - system has OT -# OpenTURNS_INCLUDE_DIR - the OT include directory -# OpenTURNS_INCLUDE_DIRS - the OT include directory and dependencies include directories -# OpenTURNS_LIBRARY - Where to find the OT library -# OpenTURNS_LIBRARIES - Link these to use OT -# OpenTURNS_WRAPPER_DIR - Wrappers directory -# OpenTURNS_WRAPPER_DEFINITIONS - Compiler switches required for using OT wrapper -# OpenTURNS_MODULE_DIR - OT module directory -# OpenTURNS_MODULE_DEFINITIONS - Compiler switches required for using OT module -# OpenTURNS_SWIG_INCLUDE_DIR - the OT include directory to swig interface -# -# Copyright (c) 2009 Mathieu Lapointe -# Copyright (c) 2010 Julien Schueller -# -# Redistribution and use is allowed according to the terms of the New -# BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# - -include (CheckFunctionExists) -include (CheckIncludeFile) -include (CheckIncludeFileCXX) -include (FindPackageHandleStandardArgs) - -# check dependencies -find_package(LibXml2 2.6.27) -find_package(PythonLibs ${PYTHON_VERSION}) - -# test if variables are not already in cache -if (NOT (OpenTURNS_INCLUDE_DIR - AND OpenTURNS_SWIG_INCLUDE_DIR - AND OpenTURNS_INCLUDE_DIRS - AND OpenTURNS_LIBRARY - AND OpenTURNS_LIBRARIES - AND OpenTURNS_WRAPPER_DIR - AND OpenTURNS_PYTHON_MODULE_DIR - AND OpenTURNS_MODULE_DIR)) - - # set include dir - if (NOT OpenTURNS_INCLUDE_DIR) - find_path (OpenTURNS_INCLUDE_DIR - NAMES - OT.hxx - HINTS - ${OPENTURNS_DIR} - /usr - /usr/local - /opt - PATH_SUFFIXES - include/openturns - DOC - "OpenTURNS include directory" - ) - endif () - - # set swig include dir - if (NOT OpenTURNS_SWIG_INCLUDE_DIR) - set(OpenTURNS_SWIG_INCLUDE_DIR "${OpenTURNS_INCLUDE_DIR}/swig") - endif () - - # dependencies includes - if (NOT OpenTURNS_INCLUDE_DIRS) - set (OpenTURNS_INCLUDE_DIRS ${OpenTURNS_INCLUDE_DIR}) - list (APPEND OpenTURNS_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIR}) - list (APPEND OpenTURNS_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS}) - endif () - - # check for library directory - if (NOT OpenTURNS_LIBRARY) - find_library (OpenTURNS_LIBRARY - NAMES - OT - HINTS - ${OPENTURNS_DIR} - /usr - /usr/local - /opt - PATH_SUFFIXES - lib/openturns - DOC - "OpenTURNS library location" - ) - endif () - - # find dependent libraries - if (NOT OpenTURNS_LIBRARIES) - set (OpenTURNS_LIBRARIES ${OpenTURNS_LIBRARY} ${LIBXML2_LIBRARIES} ${PYTHON_LIBRARIES}) - list (APPEND OpenTURNS_LIBRARIES ${LIBXML2_LIBRARIES}) - list (APPEND OpenTURNS_LIBRARIES ${PYTHON_LIBRARIES}) - endif () - - # retrieve path to lib - get_filename_component (OpenTURNS_LIBRARY_PATH ${OpenTURNS_LIBRARY} PATH) - - # retrieve install path - set (OpenTURNS_INSTALL_PATH "${OpenTURNS_LIBRARY_PATH}/../..") - - # find wrappers dir - if (NOT OpenTURNS_WRAPPER_DIR) - find_path (OpenTURNS_WRAPPER_DIR - NAMES - wrapper.xml wrapper.dtd - HINTS - ${OPENTURNS_DIR} - ${OpenTURNS_INSTALL_PATH} - /usr - /usr/local - /opt - PATH_SUFFIXES - share/openturns/wrappers - DOC - "OpenTURNS wrappers location" - ) - endif () - - # set wrapper definitions - if (NOT OpenTURNS_WRAPPER_DEFINITIONS) - set(OpenTURNS_WRAPPER_DEFINITIONS) - check_include_file_cxx (pthread.h HAVE_PTHREAD_H) - if (HAVE_PTHREAD_H) - list (APPEND OpenTURNS_WRAPPER_DEFINITIONS -DHAVE_PTHREAD_H) - endif () - endif () - - # find python module dir - if (NOT OpenTURNS_PYTHON_MODULE_DIR) - find_path (OpenTURNS_PYTHON_MODULE_DIR - NAMES - openturns.pth - HINTS - ${OPENTURNS_DIR} - ${OpenTURNS_INSTALL_PATH} - /usr - /usr/local - /opt - PATH_SUFFIXES - lib/python${PYTHON_VERSION}/site-packages - DOC - "OpenTURNS python module location" - ) - endif () - - - # find module directory - if (NOT OpenTURNS_MODULE_DIR) - set (OpenTURNS_MODULE_DIR - ${OpenTURNS_LIBRARY_PATH}/module - ) - endif () - - # set module definitions - if (NOT OpenTURNS_MODULE_DEFINITIONS) - set (OpenTURNS_MODULE_DEFINITIONS) - - # check for STDC_HEADERS - check_include_file (stdlib.h HAVE_STDLIB_H) - check_include_file (stdarg.h HAVE_STDARG_H) - check_include_file (string.h HAVE_STRING_H) - check_include_file (float.h HAVE_FLOAT_H) - check_function_exists (memchr HAVE_MEMCHR) - check_function_exists (free HAVE_FREE) - check_include_file (ctype.h HAVE_CTYPE_H) - if(HAVE_STDLIB_H AND HAVE_STDARG_H AND HAVE_STRING_H AND HAVE_FLOAT_H AND HAVE_MEMCHR AND HAVE_FREE AND HAVE_CTYPE_H) - list (APPEND OpenTURNS_MODULE_DEFINITIONS -DSTDC_HEADERS_H=1) - else () - list (APPEND OpenTURNS_MODULE_DEFINITIONS -DSTDC_HEADERS_H=0) - endif () - - # this macro checks a header and defines the corresponding macro - macro(check_include_files_define_macro header_file) - # get macro name from header_file - string(TOUPPER ${header_file} macro_name) - string(REGEX REPLACE "[/.]" "_" macro_name ${macro_name}) - set(macro_name HAVE_${macro_name}) - # check for header - check_include_file(${header_file} ${macro_name}) - # define macro - if(${macro_name}) - list (APPEND OpenTURNS_MODULE_DEFINITIONS -D${macro_name}=1) - else() - list (APPEND OpenTURNS_MODULE_DEFINITIONS -D${macro_name}=0) - endif() - endmacro() - - # check for some headers - check_include_files_define_macro(sys/types.h) - check_include_files_define_macro(sys/stat.h) - check_include_files_define_macro(stdlib.h) - check_include_files_define_macro(string.h) - check_include_files_define_macro(memory.h) - check_include_files_define_macro(strings.h) - check_include_files_define_macro(inttypes.h) - check_include_files_define_macro(stdint.h) - check_include_files_define_macro(unistd.h) - check_include_files_define_macro(dlfcn.h) - check_include_files_define_macro(stdbool.h) - check_include_files_define_macro(regex.h) - - endif () - -endif () - -# handle the QUIETLY and REQUIRED arguments and set OpenTURNS_FOUND to TRUE if -# all listed variables are TRUE -find_package_handle_standard_args (OpenTURNS DEFAULT_MSG - OpenTURNS_LIBRARY - OpenTURNS_INCLUDE_DIR - OpenTURNS_SWIG_INCLUDE_DIR - OpenTURNS_INCLUDE_DIRS - OpenTURNS_LIBRARIES - OpenTURNS_WRAPPER_DIR - OpenTURNS_PYTHON_MODULE_DIR - OpenTURNS_MODULE_DIR -) - -mark_as_advanced ( - OpenTURNS_LIBRARY - OpenTURNS_INCLUDE_DIR - OpenTURNS_SWIG_INCLUDE_DIR - OpenTURNS_INCLUDE_DIRS - OpenTURNS_LIBRARIES - OpenTURNS_WRAPPER_DIR - OpenTURNS_WRAPPER_DEFINITIONS - OpenTURNS_MODULE_DIR - OpenTURNS_PYTHON_MODULE_DIR - OpenTURNS_MODULE_DEFINITIONS -) - - -### Local Variables: -### mode: cmake -### End: diff --git a/CMakeModules/FindSphinx.cmake b/CMakeModules/FindSphinx.cmake deleted file mode 100644 index fa0bc8e9..00000000 --- a/CMakeModules/FindSphinx.cmake +++ /dev/null @@ -1,11 +0,0 @@ -find_program(SPHINX_EXECUTABLE NAMES sphinx-build - HINTS - $ENV{SPHINX_DIR} - PATH_SUFFIXES bin - DOC "Sphinx documentation generator" -) -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Sphinx DEFAULT_MSG - SPHINX_EXECUTABLE -) -mark_as_advanced(SPHINX_EXECUTABLE) diff --git a/MAP/CMakeLists.txt b/MAP/CMakeLists.txt deleted file mode 100644 index f65a4429..00000000 --- a/MAP/CMakeLists.txt +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# CONFIGURATION MANAGEMENT OF EDF VERSION -# ====================================================================== -# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG -# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY -# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY -# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR -# (AT YOUR OPTION) ANY LATER VERSION. -# -# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT -# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF -# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU -# GENERAL PUBLIC LICENSE FOR MORE DETAILS. -# -# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE -# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER, -# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. -# -# -# ====================================================================== - - -install ( FILES qtEficas_map.py - prefs.py - style.py - prefs_MAP.py - configuration_MAP.py - mapcata.py - DESTINATION ${CMAKE_INSTALL_PREFIX}/MAP - ) - - -### Local Variables: -### mode: cmake -### End: diff --git a/Telemac/.monCode_Cata.py.swp b/Telemac/.monCode_Cata.py.swp deleted file mode 100644 index 6d2dd181..00000000 Binary files a/Telemac/.monCode_Cata.py.swp and /dev/null differ diff --git a/Telemac/CMakeLists.txt b/Telemac/CMakeLists.txt deleted file mode 100644 index 3247b3c2..00000000 --- a/Telemac/CMakeLists.txt +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# CONFIGURATION MANAGEMENT OF EDF VERSION -# ====================================================================== -# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG -# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY -# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY -# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR -# (AT YOUR OPTION) ANY LATER VERSION. -# -# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT -# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF -# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU -# GENERAL PUBLIC LICENSE FOR MORE DETAILS. -# -# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE -# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER, -# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. -# -# -# ====================================================================== - - -install ( FILES aideAuxConvertisseurs.py configuration_TELEMAC.py dicoCasEnToCata.py dicoCasFrToCata.py enum_Telemac2d_auto.py prefs.py prefs_TELEMAC.py properties.py qtEficas_Telemac.py Telemac2d_Cata_auto.py labelCataToIhm_en.qm labelCataToIhm_fr.qm - DESTINATION ${CMAKE_INSTALL_PREFIX}/Telemac - ) - - - -### Local Variables: -### mode: cmake -### End: diff --git a/Telemac/labelCataToIhm_en.qm b/Telemac/labelCataToIhm_en.qm deleted file mode 100644 index 05ca84d2..00000000 Binary files a/Telemac/labelCataToIhm_en.qm and /dev/null differ diff --git a/Telemac/labelCataToIhm_en.ts b/Telemac/labelCataToIhm_en.ts deleted file mode 100644 index 6f244f81..00000000 --- a/Telemac/labelCataToIhm_en.ts +++ /dev/null @@ -1,1240 +0,0 @@ - - @default - - COEFFICIENT_TO_CALIBRATE_TIDAL_VELOCITIES - Coefficient to calibrate tidal velocities - - - COST_FUNCTION - Cost function - - - BOTTOM_TOPOGRAPHY_FILE - Bottom topography file - - - DENSITY_OF_ALGAE - Density of algae - - - STEERING_FILE - Steering file - - - NUMBER_OF_CORRECTIONS_OF_DISTRIBUTIVE_SCHEMES - Number of corrections of distributive schemes - - - LONGITUDE_OF_ORIGIN_POINT - Longitude of origin point - - - PREVIOUS_COMPUTATION_FILE - Previous computation file - - - DIAMETER_OF_ROUGHNESS_ELEMENTS - Diameter of roughness elements - - - THICKNESS_OF_ALGAE - Thickness of algae - - - CORIOLIS - Coriolis - - - OPTION_FOR_TIDAL_BOUNDARY_CONDITIONS - Option for tidal boundary conditions - - - NUMBER_OF_TIME_STEPS - Number of time steps - - - ADVECTION - Advection - - - NEWMARK_TIME_INTEGRATION_COEFFICIENT - Newmark time integration coefficient - - - TIME_STEP - Time step - - - VALUE_OF_ATMOSPHERIC_PRESSURE - Value of atmospheric pressure - - - LISTING_FOR_PRINTOUT_PERIOD - Listing for printout period - - - BINARY_DATABASE_2_FOR_TIDE - Binary database 2 for tide - - - VOLUMES_DELWAQ_FILE - Volumes DELWAQ file - - - DESCRIPTION_OF_LIBRARIES - Description of libraries - - - STOP_IF_A_STEADY_STATE_IS_REACHED - Stop if a steady state is reached - - - SALINITY_DELWAQ_FILE - Salinity DELWAQ file - - - IMPLICITATION_FOR_DEPTH - Implicitation for depth - - - DROGUES_FILE - Drogues file - - - TEMPERATURE_FOR_DELWAQ - Temperature for DELWAQ - - - BLOBAL_NUMBERS_OF_SOURCE_NODES - Blobal numbers of source nodes - - - INITIAL_DEPTH - Initial depth - - - IDENTIFICATION_METHOD - Identification method - - - COEFFICIENT_FOR_DIFFUSION_OF_TRACERS - Coefficient for diffusion of tracers - - - VELOCITY_DIFFUSIVITY - Velocity diffusivity - - - VECTOR_LENGTH - Vector length - - - GRAPHIC_PRINTOUT_PERIOD - Graphic printout period - - - LINEARIZED_PROPAGATION - Linearized propagation - - - PRECONDITIONING - Preconditioning - - - MANNING_DEFAULT_VALUE_FOR_COLEBROOK_WHITE_LAW - Manning default value for colebrook-white law - - - PRINTOUT_PERIOD_FOR_DROGUES - Printout period for drogues - - - DURATION_OF_RAIN_OR_EVAPORATION_IN_HOURS - Duration of rain or evaporation in hours - - - DEBUGGER - Debugger - - - DICTIONARY - Dictionary - - - SIPHONS_DATA_FILE - Siphons data file - - - WATER_DISCHARGE_OF_SOURCES - Water discharge of sources - - - ADVECTION_OF_U_AND_V - Advection of U and V - - - ANTECEDENT_MOISTURE_CONDITIONS - Antecedent moisture conditions - - - DIFFUSION_OF_VELOCITY - Diffusion of velocity - - - WATER_DENSITY - Water density - - - ORIGIN_COORDINATES - Origin coordinates - - - LATITUDE_OF_ORIGIN_POINT - Latitude of origin point - - - PRESCRIBED_TRACERS_VALUES - Prescribed tracers values - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_SOLVER - Maximum number of iterations for solver - - - FLUXLINE - Fluxline - - - TIDE_GENERATING_FORCE - Tide generating force - - - VELOCITY_FOR_DELWAQ - Velocity for DELWAQ - - - PARALLEL_PROCESSORS - Parallel processors - - - ROUGHNESS_COEFFICIENT_OF_BOUNDARIES - Roughness coefficient of boundaries - - - RAINFALL_RUNOFF_MODEL - Rainfall-runoff model - - - PSI_SCHEME_OPTION - Psi scheme option - - - SCHEME_OPTION_FOR_ADVECTION_OF_VELOCITIES - Scheme option for advection of velocities - - - INITIAL_CONDITIONS - Initial conditions - - - INITIAL_TIME_SET_TO_ZERO - Initial time set to zero - - - NUMBER_OF_SUB_ITERATIONS_FOR_NON_LINEARITIES - Number of sub-iterations for non-linearities - - - OPTION_FOR_THE_DIFFUSION_OF_TRACERS - Option for the diffusion of tracers - - - CULVERTS_DATA_FILE - Culverts data file - - - ACCURACY_OF_EPSILON - Accuracy of epsilon - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_DIFFUSION_OF_TRACERS - Maximum number of iterations for diffusion of tracers - - - MASS_LUMPING_ON_VELOCITY - Mass-lumping on velocity - - - FRICTION_DATA_FILE - Friction data file - - - SCHEME_FOR_ADVECTION_OF_K_EPSILON - Scheme for advection of K-epsilon - - - SOLVER_ACCURACY - Solver accuracy - - - NAMES_OF_POINTS - Names of points - - - TOMAWAC_STEERING_FILE - TOMAWAC steering file - - - BOUNDARY_CONDITIONS_FILE - Boundary conditions file - - - STOP_CRITERIA - Stop criteria - - - BINARY_RESULTS_FILE_FORMAT - Binary results file format - - - TEMPERATURE_DELWAQ_FILE - Temperature DELWAQ file - - - PROPAGATION - Propagation - - - FINITE_VOLUME_SCHEME - Finite volume scheme - - - IMPLICITATION_COEFFICIENT_OF_TRACERS - Implicitation coefficient of tracers - - - CORIOLIS_COEFFICIENT - Coriolis coefficient - - - PRESCRIBED_FLOWRATES - Prescribed flowrates - - - TURBULENCE_MODEL - Turbulence model - - - NUMBER_OF_FIRST_TIME_STEP_FOR_LISTING_PRINTOUTS - Number of first time step for listing printouts - - - PRINTING_CUMULATED_FLOWRATES - Printing cumulated flowrates - - - NUMBER_OF_FIRST_TIME_STEP_FOR_GRAPHIC_PRINTOUTS - Number of first time step for graphic printouts - - - PHYSICAL_CHARACTERISTICS_OF_THE_TSUNAMI - Physical characteristics of the tsunami - - - MASS_BALANCE - Mass-balance - - - BINARY_DATABASE_1_FOR_TIDE - Binary database 1 for tide - - - SOURCES_FILE - Sources file - - - LAW_OF_TRACERS_DEGRADATION - Law of tracers degradation - - - SECTIONS_INPUT_FILE - Sections input file - - - CONTROL_SECTIONS - Control sections - - - SOLVER_FOR_DIFFUSION_OF_TRACERS - Solver for diffusion of tracers - - - RESULTS_FILE_FORMAT - Results file format - - - SECONDARY_CURRENTS - Secondary currents - - - OPTION_FOR_INITIAL_ABSTRACTION_RATIO - Option for initial abstraction ratio - - - TYPE_OF_WEIRS - Type of weirs - - - NUMBER_OF_SUB_STEPS_OF_DISTRIBUTIVE_SCHEMES - Number of sub-steps of distributive schemes - - - SPACING_OF_ROUGHNESS_ELEMENTS - Spacing of roughness elements - - - SCHEME_OPTION_FOR_ADVECTION_OF_K_EPSILON - Scheme option for advection of K-epsilon - - - COUPLING_WITH - Coupling with - - - LISTING_PRINTOUT_PERIOD - Listing printout period - - - THRESHOLD_DEPTH_FOR_WIND - Threshold depth for wind - - - VELOCITY_PROFILES - Velocity profiles - - - ALGAE_TYPE - Algae type - - - TREATMENT_OF_FLUXES_AT_THE_BOUNDARIES - Treatment of fluxes at the boundaries - - - MINOR_CONSTITUENTS_INFERENCE - Minor constituents inference - - - STAGE_DISCHARGE_CURVES - Stage-discharge curves - - - GLOBAL_NUMBER_OF_THE_POINT_TO_CALIBRATE_HIGH_WATER - Global number of the point to calibrate high water - - - RAIN_OR_EVAPORATION_IN_MM_PER_DAY - Rain or evaporation in mm per day - - - REFERENCE_FILE_FORMAT - Reference file format - - - SALINITY_FOR_DELWAQ - Salinity for DELWAQ - - - DIFFUSIVITY_FOR_DELWAQ - Diffusivity for DELWAQ - - - BOTTOM_SURFACES_DELWAQ_FILE - Bottom surfaces DELWAQ file - - - FORMATTED_DATA_FILE_1 - Formatted data file 1 - - - FORMATTED_DATA_FILE_2 - Formatted data file 2 - - - COMPUTATION_CONTINUED - Computation continued - - - RECORD_NUMBER_IN_WAVE_FILE - Record number in wave file - - - C_U_PRECONDITIONING - C-U preconditioning - - - LIST_OF_POINTS - List of points - - - TYPE_OF_ADVECTION - Type of advection - - - WIND_VELOCITY_ALONG_X - Wind velocity along X - - - WIND_VELOCITY_ALONG_Y - Wind velocity along Y - - - TOLERANCES_FOR_IDENTIFICATION - Tolerances for identification - - - PREVIOUS_COMPUTATION_FILE_FORMAT - Previous computation file format - - - DISCRETIZATIONS_IN_SPACE - Discretizations in space - - - BINARY_ATMOSPHERIC_DATA_FILE - Binary atmospheric data file - - - BINARY_RESULTS_FILE - Binary results file - - - EXCHANGES_BETWEEN_NODES_DELWAQ_FILE - Exchanges between nodes DELWAQ file - - - CONTINUITY_CORRECTION - Continuity correction - - - SCHEME_FOR_ADVECTION_OF_VELOCITIES - Scheme for advection of velocities - - - EXCHANGE_AREAS_DELWAQ_FILE - Exchange areas DELWAQ file - - - SISYPHE_STEERING_FILE - Sisyphe steering file - - - IMPLICITATION_FOR_DIFFUSION_OF_VELOCITY - Implicitation for diffusion of velocity - - - ADVECTION_OF_K_AND_EPSILON - Advection of K and epsilon - - - FREE_SURFACE_GRADIENT_COMPATIBILITY - Free surface gradient compatibility - - - VALUES_OF_THE_TRACERS_AT_THE_SOURCES - Values of the tracers at the sources - - - NUMBER_OF_CULVERTS - Number of culverts - - - RELEASE - Release - - - AD_NAMES_OF_DERIVATIVES - Ad names of derivatives - - - LANGUAGE - Language - - - NAMES_OF_PRIVATE_VARIABLES - Names of private variables - - - PRECONDITIONING_FOR_DIFFUSION_OF_TRACERS - Preconditioning for diffusion of tracers - - - VALIDATION - Validation - - - NUMBER_OF_SIPHONS - Number of siphons - - - BINARY_ATMOSPHERIC_DATA_FILE_FORMAT - Binary atmospheric data file format - - - WEIRS_DATA_FILE - Weirs data file - - - IMPLICITATION_FOR_VELOCITY - Implicitation for velocity - - - DEFINITION_OF_ZONES - Definition of zones - - - LISTING_PRINTOUT - Listing printout - - - MEAN_DEPTH_FOR_LINEARIZATION - Mean depth for linearization - - - COUPLING_PERIOD_FOR_TOMAWAC - Coupling period for TOMAWAC - - - WAVE_ENHANCED_FRICTION_FACTOR - Wave enhanced friction factor - - - VARIABLES_FOR_GRAPHIC_PRINTOUTS - Variables for graphic printouts - - - DEPTH_IN_FRICTION_TERMS - Depth in friction terms - - - MASS_LUMPING_ON_H - Mass-lumping on H - - - NUMBER_OF_LAGRANGIAN_DRIFTS - Number of lagrangian drifts - - - NON_DIMENSIONAL_DISPERSION_COEFFICIENTS - Non-dimensional dispersion coefficients - - - FOURIER_ANALYSIS_PERIODS - Fourier analysis periods - - - VARIABLES_TO_BE_PRINTED - Variables to be printed - - - EQUATIONS - Equations - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_IDENTIFICATION - Maximum number of iterations for identification - - - WIND - Wind - - - SPEED_AND_DIRECTION_OF_WIND - Speed and direction of wind - - - NAMES_OF_CLANDESTINE_VARIABLES - Names of clandestine variables - - - GEOMETRY_FILE_FORMAT - Geometry file format - - - NON_SUBMERGED_VEGETATION_FRICTION - Non-submerged vegetation friction - - - TYPE_OF_SOURCES - Type of sources - - - TIDAL_FLATS - Tidal flats - - - TITLE - Title - - - ORIGINAL_HOUR_OF_TIME - Original hour of time - - - LAW_OF_FRICTION_ON_LATERAL_BOUNDARIES - Law of friction on lateral boundaries - - - STAGE_DISCHARGE_CURVES_FILE - Stage-discharge curves file - - - DESIRED_COURANT_NUMBER - Desired courant number - - - DISSIPATION_COEFFICIENT_FOR_SECONDARY_CURRENTS - Dissipation coefficient for secondary currents - - - COUPLING_PERIOD_FOR_SISYPHE - Coupling period for sisyphe - - - ALGAE_TRANSPORT_MODEL - Algae transport model - - - ABSCISSAE_OF_SOURCES - Abscissae of sources - - - LIQUID_BOUNDARIES_FILE - Liquid boundaries file - - - VELOCITIES_OF_THE_SOURCES_ALONG_X - Velocities of the sources along X - - - VELOCITIES_OF_THE_SOURCES_ALONG_Y - Velocities of the sources along Y - - - MAXIMUM_NUMBER_OF_SOURCES - Maximum number of sources - - - SOLVER_OPTION_FOR_TRACERS_DIFFUSION - Solver option for tracers diffusion - - - INFORMATION_ABOUT_SOLVER - Information about solver - - - BINARY_DATA_FILE_1_FORMAT - Binary data file 1 format - - - DIAMETRE_OF_ALGAE - Diametre of algae - - - COUPLING_DIRECTORY - Coupling directory - - - DELWAQ_PRINTOUT_PERIOD - DELWAQ printout period - - - BOTTOM_SMOOTHINGS - Bottom smoothings - - - AIR_PRESSURE - Air pressure - - - PRESCRIBED_ELEVATIONS - Prescribed elevations - - - MASS_LUMPING_FOR_WEAK_CHARACTERISTICS - Mass-lumping for weak characteristics - - - GRAVITY_ACCELERATION - Gravity acceleration - - - LIMIT_VALUES - Limit values - - - RESULTS_FILE - Results file - - - SCHEME_OPTION_FOR_ADVECTION_OF_TRACERS - Scheme option for advection of tracers - - - OPTION_FOR_CHARACTERISTICS - Option for characteristics - - - OPTION_FOR_THE_TREATMENT_OF_TIDAL_FLATS - Option for the treatment of tidal flats - - - TIME_RANGE_FOR_FOURIER_ANALYSIS - Time range for fourier analysis - - - VERTICAL_FLUXES_DELWAQ_FILE - Vertical fluxes DELWAQ file - - - ORDINATES_OF_SOURCES - Ordinates of sources - - - MAXIMUM_NUMBER_OF_TRACERS - Maximum number of tracers - - - TURBULENCE_REGIME_FOR_SOLID_BOUNDARIES - Turbulence regime for solid boundaries - - - LOCAL_NUMBER_OF_THE_POINT_TO_CALIBRATE_HIGH_WATER - Local number of the point to calibrate high water - - - NODES_DISTANCES_DELWAQ_FILE - Nodes distances DELWAQ file - - - NUMBER_OF_DROGUES - Number of drogues - - - SOLVER_FOR_K_EPSILON_MODEL - Solver for K-Epsilon model - - - SECTIONS_OUTPUT_FILE - Sections output file - - - HARMONIC_CONSTANTS_FILE - Harmonic constants file - - - OPTION_FOR_CULVERTS - Option for culverts - - - ASCII_ATMOSPHERIC_DATA_FILE - ASCII atmospheric data file - - - INITIAL_ELEVATION - Initial elevation - - - ZERO - Zero - - - BREACHES_DATA_FILE - Breaches data file - - - OPTION_FOR_WIND - Option for wind - - - OPTION_OF_THE_HYDROSTATIC_RECONSTRUCTION - Option of the hydrostatic reconstruction - - - NUMBER_OF_TRACERS - Number of tracers - - - DIFFUSIVITY_DELWAQ_FILE - Diffusivity DELWAQ file - - - ADVECTION_OF_TRACERS - Advection of tracers - - - SOLVER_OPTION - Solver option - - - MATRIX_STORAGE - Matrix storage - - - COEFFICIENT_TO_CALIBRATE_TIDAL_RANGE - Coefficient to calibrate tidal range - - - BINARY_DATA_FILE_1 - Binary data file 1 - - - BINARY_DATA_FILE_2 - Binary data file 2 - - - CONTROL_OF_LIMITS - Control of limits - - - RECORD_NUMBER_FOR_RESTART - Record number for restart - - - NUMBER_OF_GAUSS_POINTS_FOR_WEAK_CHARACTERISTICS - Number of Gauss points for weak characteristics - - - COEFFICIENT_OF_WIND_INFLUENCE - Coefficient of wind influence - - - PRECONDITIONING_FOR_K_EPSILON_MODEL - Preconditioning for K-Epsilon model - - - PRODUCTION_COEFFICIENT_FOR_SECONDARY_CURRENTS - Production coefficient for secondary currents - - - MINIMUM_VALUE_OF_DEPTH - Minimum value of depth - - - ELEMENTS_MASKED_BY_USER - Elements masked by user - - - FRICTION_COEFFICIENT - Friction coefficient - - - PRESCRIBED_VELOCITIES - Prescribed velocities - - - NAMES_OF_TRACERS - Names of tracers - - - VELOCITY_DELWAQ_FILE - Velocity DELWAQ file - - - H_CLIPPING - H clipping - - - ZONE_NUMBER_IN_GEOGRAPHIC_SYSTEM - Zone number in geographic system - - - SUPG_OPTION - SUPG option - - - PARAMETER_ESTIMATION - Parameter estimation - - - CHECKING_THE_MESH - Checking the mesh - - - AD_NUMBER_OF_DERIVATIVES - Ad number of derivatives - - - COMPATIBLE_COMPUTATION_OF_FLUXES - Compatible computation of fluxes - - - LIST_OF_FILES - List of files - - - NUMBER_OF_PRIVATE_ARRAYS - Number of private arrays - - - MAXIMUM_NUMBER_OF_FRICTION_DOMAINS - Maximum number of friction domains - - - DURATION - Duration - - - DELWAQ_STEERING_FILE - DELWAQ steering file - - - COEFFICIENT_1_FOR_LAW_OF_TRACERS_DEGRADATION - Coefficient 1 for law of tracers degradation - - - ACCURACY_OF_K - Accuracy of K - - - WATER_QUALITY_PROCESS - Water quality process - - - ADVECTION_OF_H - Advection of H - - - SCHEME_FOR_ADVECTION_OF_TRACERS - Scheme for advection of tracers - - - BINARY_DATA_FILE_2_FORMAT - Binary data file 2 format - - - COEFFICIENT_TO_CALIBRATE_SEA_LEVEL - Coefficient to calibrate sea level - - - OPTION_FOR_THE_DIFFUSION_OF_VELOCITIES - Option for the diffusion of velocities - - - INITIAL_GUESS_FOR_H - Initial guess for H - - - MASS_LUMPING_ON_TRACERS - Mass-lumping on tracers - - - OPTION_FOR_LIQUID_BOUNDARIES - Option for liquid boundaries - - - GEOMETRY_FILE - Geometry file - - - WAQTEL_STEERING_FILE - Waqtel steering file - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_ADVECTION_SCHEMES - Maximum number of iterations for advection schemes - - - FLUXLINE_INPUT_FILE - Fluxline input file - - - RAIN_OR_EVAPORATION - Rain or evaporation - - - LAW_OF_BOTTOM_FRICTION - Law of bottom friction - - - MATRIX_VECTOR_PRODUCT - Matrix-vector product - - - ACCURACY_FOR_DIFFUSION_OF_TRACERS - Accuracy for diffusion of tracers - - - MEAN_TEMPERATURE - Mean temperature - - - PARTITIONING_TOOL - Partitioning tool - - - MAXIMUM_NUMBER_OF_BOUNDARIES - Maximum number of boundaries - - - OPTION_FOR_THE_SOLVER_FOR_K_EPSILON_MODEL - Option for the solver for K-Epsilon model - - - SPATIAL_PROJECTION_TYPE - Spatial projection type - - - THRESHOLD_FOR_NEGATIVE_DEPTHS - Threshold for negative depths - - - DEFAULT_PARALLEL_EXECUTABLE - Default parallel executable - - - INITIAL_GUESS_FOR_U - Initial guess for U - - - DIFFUSION_OF_TRACERS - Diffusion of tracers - - - DEFAULT_EXECUTABLE - Default executable - - - FORMATTED_RESULTS_FILE - Formatted results file - - - VALUES_OF_TRACERS_IN_THE_RAIN - Values of tracers in the rain - - - VERTICAL_STRUCTURES - Vertical structures - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_K_AND_EPSILON - Maximum number of iterations for K and Epsilon - - - UPWIND_COEFFICIENTS - Upwind coefficients - - - FRICTION_DATA - Friction data - - - NUMBER_OF_WEIRS - Number of weirs - - - OPTION_FOR_TSUNAMI_GENERATION - Option for tsunami generation - - - VARIABLE_TIME_STEP - Variable time-step - - - WAVE_DRIVEN_CURRENTS - Wave driven currents - - - INFORMATION_ABOUT_K_EPSILON_MODEL - Information about K-Epsilon model - - - ZONES_FILE - Zones file - - - SPHERICAL_COORDINATES - Spherical coordinates - - - NORTH - North - - - TREATMENT_OF_THE_LINEAR_SYSTEM - Treatment of the linear system - - - REFERENCE_FILE - Reference file - - - DENSITY_EFFECTS - Density effects - - - ASCII_DATABASE_FOR_TIDE - ASCII database for tide - - - THRESHOLD_DEPTH_FOR_RECEDING_PROCEDURE - Threshold depth for receding procedure - - - OIL_SPILL_MODEL - Oil spill model - - - SOLVER - Solver - - - TIME_STEP_REDUCTION_FOR_K_EPSILON_MODEL - Time step reduction for K-Epsilon model - - - STOCHASTIC_DIFFUSION_MODEL - Stochastic diffusion model - - - ORIGINAL_DATE_OF_TIME - Original date of time - - - GEOGRAPHIC_SYSTEM - Geographic system - - - FORTRAN_FILE - Fortran file - - - PROPAGATION_OPTION - Propagation option - - - OIL_SPILL_STEERING_FILE - Oil spill steering file - - - TIDAL_DATA_BASE - Tidal data base - - - TIDAL_MODEL_FILE - Tidal model file - - - BREACH - Breach - - - TREATMENT_OF_NEGATIVE_DEPTHS - Treatment of negative depths - - - INITIAL_VALUES_OF_TRACERS - Initial values of tracers - - - diff --git a/Telemac/labelCataToIhm_fr.qm b/Telemac/labelCataToIhm_fr.qm deleted file mode 100644 index eb9c2954..00000000 Binary files a/Telemac/labelCataToIhm_fr.qm and /dev/null differ diff --git a/Telemac/labelCataToIhm_fr.ts b/Telemac/labelCataToIhm_fr.ts deleted file mode 100644 index 0d60b40a..00000000 --- a/Telemac/labelCataToIhm_fr.ts +++ /dev/null @@ -1,1336 +0,0 @@ - - @default - - COEFFICIENT_TO_CALIBRATE_TIDAL_VELOCITIES - Coefficient de calage des vitesses de courant - - - COST_FUNCTION - Fonction cout - - - BOTTOM_TOPOGRAPHY_FILE - Fichier des fonds - - - DENSITY_OF_ALGAE - Masse volumique des algues - - - STEERING_FILE - Fichier des parametres - - - NUMBER_OF_CORRECTIONS_OF_DISTRIBUTIVE_SCHEMES - Nombre de corrections des schemas distributifs - - - LONGITUDE_OF_ORIGIN_POINT - Longitude du point origine - - - PREVIOUS_COMPUTATION_FILE - Fichier du calcul precedent - - - DIAMETER_OF_ROUGHNESS_ELEMENTS - Diametre des elements de frottement - - - THICKNESS_OF_ALGAE - Epaisseur des algues - - - CORIOLIS - Coriolis - - - OPTION_FOR_TIDAL_BOUNDARY_CONDITIONS - Option pour les conditions aux limites de maree - - - PARTICULIERES - PARTICULIERES - - - NUMBER_OF_TIME_STEPS - Nombre de pas de temps - - - ADVECTION - Convection - - - NEWMARK_TIME_INTEGRATION_COEFFICIENT - Coefficient d'integration en temps de newmark - - - ZERO DEPTH - HAUTEUR NULLE - - - TIME_STEP - Pas de temps - - - VALUE_OF_ATMOSPHERIC_PRESSURE - Valeur de la pression atmospherique - - - LISTING_FOR_PRINTOUT_PERIOD - Periode pour les sorties listing - - - BINARY_DATABASE_2_FOR_TIDE - Base binaire 2 de donnees de maree - - - VOLUMES_DELWAQ_FILE - Fichier DELWAQ des volumes - - - DESCRIPTION_OF_LIBRARIES - Description des librairies - - - STOP_IF_A_STEADY_STATE_IS_REACHED - Arret si un etat permanent est atteint - - - SALINITY_DELWAQ_FILE - Fichier DELWAQ de la salinite - - - IMPLICITATION_FOR_DEPTH - Implicitation pour la hauteur - - - DROGUES_FILE - Fichier des flotteurs - - - TEMPERATURE_FOR_DELWAQ - Temperature pour DELWAQ - - - BLOBAL_NUMBERS_OF_SOURCE_NODES - Numeros globaux des noeuds des sources - - - INITIAL_DEPTH - Hauteur initiale - - - PARMETIS - PARMETIS - - - IDENTIFICATION_METHOD - Methode d'identification - - - SAINT-VENANT FE - SAINT-VENANT EF - - - COEFFICIENT_FOR_DIFFUSION_OF_TRACERS - Coefficient de diffusion des traceurs - - - VELOCITY_DIFFUSIVITY - Coefficient de diffusion des vitesses - - - VECTOR_LENGTH - Longueur du vecteur - - - GRAPHIC_PRINTOUT_PERIOD - Periode pour les sorties graphiques - - - LINEARIZED_PROPAGATION - Propagation linearisee - - - PRECONDITIONING - Preconditionnement - - - MANNING_DEFAULT_VALUE_FOR_COLEBROOK_WHITE_LAW - Valeur par defaut du manning pour la loi de colebrook-white - - - PRINTOUT_PERIOD_FOR_DROGUES - Periode pour les sorties de flotteurs - - - DURATION_OF_RAIN_OR_EVAPORATION_IN_HOURS - Duree de la pluie ou evaporation en heures - - - DEBUGGER - Debugger - - - DICTIONARY - Dictionnaire - - - SIPHONS_DATA_FILE - Fichier de donnees des siphons - - - WATER_DISCHARGE_OF_SOURCES - Debits des sources - - - ADVECTION_OF_U_AND_V - Convection de U et V - - - ANTECEDENT_MOISTURE_CONDITIONS - Conditions d'humidite precedente - - - DIFFUSION_OF_VELOCITY - Diffusion des vitesses - - - CONSTANT DEPTH - HAUTEUR CONSTANTE - - - WATER_DENSITY - Masse volumique de l'eau - - - ORIGIN_COORDINATES - Coordonnees de l'origine - - - LATITUDE_OF_ORIGIN_POINT - Latitude du point origine - - - PRESCRIBED_TRACERS_VALUES - Valeurs imposees des traceurs - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_SOLVER - Maximum d'iterations pour le solveur - - - FLUXLINE - Fluxline - - - TIDE_GENERATING_FORCE - Force generatrice de la maree - - - VELOCITY_FOR_DELWAQ - Vitesse pour DELWAQ - - - PARALLEL_PROCESSORS - Processeurs paralleles - - - ROUGHNESS_COEFFICIENT_OF_BOUNDARIES - Coefficient de rugosite des bords - - - RAINFALL_RUNOFF_MODEL - Modele pluie-debit - - - PSI_SCHEME_OPTION - Option du schema PSI - - - SCHEME_OPTION_FOR_ADVECTION_OF_VELOCITIES - Option du schema pour la convection des vitesses - - - INITIAL_CONDITIONS - Conditions initiales - - - INITIAL_TIME_SET_TO_ZERO - Remise a zero du temps - - - PTSCOTCH - PTSCOTCH - - - NUMBER_OF_SUB_ITERATIONS_FOR_NON_LINEARITIES - Nombre de sous-iterations pour les non-linearites - - - OPTION_FOR_THE_DIFFUSION_OF_TRACERS - Option pour la diffusion des traceurs - - - CULVERTS_DATA_FILE - Fichier de donnees des buses - - - ACCURACY_OF_EPSILON - Precision sur epsilon - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_DIFFUSION_OF_TRACERS - Maximum d'iterations pour la diffusion des traceurs - - - MASS_LUMPING_ON_VELOCITY - Mass-lumping sur la vitesse - - - FRICTION_DATA_FILE - Fichier de donnees pour le frottement - - - SCHEME_FOR_ADVECTION_OF_K_EPSILON - Schema pour la convection du K-Epsilon - - - SOLVER_ACCURACY - Precision du solveur - - - NAMES_OF_POINTS - Noms des points - - - TOMAWAC_STEERING_FILE - Fichier des parametres de TOMAWAC - - - BOUNDARY_CONDITIONS_FILE - Fichier des conditions aux limites - - - STOP_CRITERIA - Criteres d'arret - - - BINARY_RESULTS_FILE_FORMAT - Format du fichier de resultats binaire - - - TEMPERATURE_DELWAQ_FILE - Fichier DELWAQ de la temperature - - - PROPAGATION - Propagation - - - FINITE_VOLUME_SCHEME - Schema en volumes finis - - - IMPLICITATION_COEFFICIENT_OF_TRACERS - Coefficient d'implicitation des traceurs - - - CORIOLIS_COEFFICIENT - Coefficient de coriolis - - - PRESCRIBED_FLOWRATES - Debits imposes - - - TURBULENCE_MODEL - Modele de turbulence - - - NUMBER_OF_FIRST_TIME_STEP_FOR_LISTING_PRINTOUTS - Numero du premier pas de temps pour les sorties listing - - - PRINTING_CUMULATED_FLOWRATES - Impression du cumul des flux - - - NUMBER_OF_FIRST_TIME_STEP_FOR_GRAPHIC_PRINTOUTS - Numero du premier pas de temps pour les sorties graphiques - - - PHYSICAL_CHARACTERISTICS_OF_THE_TSUNAMI - Parametres physiques du tsunami - - - MASS_BALANCE - Bilan de masse - - - BINARY_DATABASE_1_FOR_TIDE - Base binaire 1 de donnees de maree - - - SOURCES_FILE - Fichier des sources - - - LAW_OF_TRACERS_DEGRADATION - Loi de degradation des traceurs - - - SECTIONS_INPUT_FILE - Fichier des sections de controle - - - CONTROL_SECTIONS - Sections de controle - - - SOLVER_FOR_DIFFUSION_OF_TRACERS - Solveur pour la diffusion des traceurs - - - RESULTS_FILE_FORMAT - Format du fichier des resultats - - - SECONDARY_CURRENTS - Courants secondaires - - - BIN - BIN - - - OPTION_FOR_INITIAL_ABSTRACTION_RATIO - Option pour ratio des pertes initiales - - - TYPE_OF_WEIRS - Type des seuils - - - NUMBER_OF_SUB_STEPS_OF_DISTRIBUTIVE_SCHEMES - Nombre de sous-pas des schemas distributifs - - - SPACING_OF_ROUGHNESS_ELEMENTS - Espacement des elements de frottement - - - SCHEME_OPTION_FOR_ADVECTION_OF_K_EPSILON - Option du schema pour la convection du K-Epsilon - - - COUPLING_WITH - Couplage avec - - - LISTING_PRINTOUT_PERIOD - Periode de sortie listing - - - THRESHOLD_DEPTH_FOR_WIND - Profondeur limite pour le vent - - - VELOCITY_PROFILES - Profils de vitesse - - - ALGAE_TYPE - Type des algues - - - TREATMENT_OF_FLUXES_AT_THE_BOUNDARIES - Traitement des flux aux frontieres - - - MINOR_CONSTITUENTS_INFERENCE - Interpolation de composantes mineures - - - STAGE_DISCHARGE_CURVES - Courbes de tarage - - - GLOBAL_NUMBER_OF_THE_POINT_TO_CALIBRATE_HIGH_WATER - Numero global du point pour caler la pleine mer - - - RAIN_OR_EVAPORATION_IN_MM_PER_DAY - Pluie ou evaporation en mm par jour - - - REFERENCE_FILE_FORMAT - Format du fichier de reference - - - SALINITY_FOR_DELWAQ - Salinite pour DELWAQ - - - DIFFUSIVITY_FOR_DELWAQ - Diffusion pour DELWAQ - - - DELWAQ - DELWAQ - - - BOTTOM_SURFACES_DELWAQ_FILE - Fichier DELWAQ des surfaces du fond - - - FORMATTED_DATA_FILE_1 - Fichier de donnees formate 1 - - - FORMATTED_DATA_FILE_2 - Fichier de donnees formate 2 - - - COMPUTATION_CONTINUED - Suite de calcul - - - RECORD_NUMBER_IN_WAVE_FILE - Numero de l'enregistrement dans le fichier de Houle - - - C_U_PRECONDITIONING - Preconditionnement C-U - - - LIST_OF_POINTS - Liste de points - - - TYPE_OF_ADVECTION - Forme de la convection - - - WIND_VELOCITY_ALONG_X - Vitesse du vent suivant X - - - WIND_VELOCITY_ALONG_Y - Vitesse du vent suivant Y - - - TOLERANCES_FOR_IDENTIFICATION - Precisions pour l'identification - - - PREVIOUS_COMPUTATION_FILE_FORMAT - Format du fichier du calcul precedent - - - METIS - METIS - - - DISCRETIZATIONS_IN_SPACE - Discretisations en espace - - - BINARY_ATMOSPHERIC_DATA_FILE - Fichier binaire de donnees atmospheriques - - - BINARY_RESULTS_FILE - Fichier de resultats binaire - - - EXCHANGES_BETWEEN_NODES_DELWAQ_FILE - Fichier DELWAQ des echanges entre noeuds - - - CONTINUITY_CORRECTION - Correction de continuite - - - SCHEME_FOR_ADVECTION_OF_VELOCITIES - Schema pour la convection des vitesses - - - EXCHANGE_AREAS_DELWAQ_FILE - Fichier DELWAQ des surfaces de flux - - - SISYPHE_STEERING_FILE - Fichier des parametres de sisyphe - - - IMPLICITATION_FOR_DIFFUSION_OF_VELOCITY - Implicitation pour la diffusion des vitesses - - - ADVECTION_OF_K_AND_EPSILON - Convection de K et epsilon - - - FREE_SURFACE_GRADIENT_COMPATIBILITY - Compatibilite du gradient de surface libre - - - VALUES_OF_THE_TRACERS_AT_THE_SOURCES - Valeurs des traceurs des sources - - - NUMBER_OF_CULVERTS - Nombre de buses - - - ZERO ELEVATION - COTE NULLE - - - RELEASE - Numero de version - - - AD_NAMES_OF_DERIVATIVES - Ad noms des derivees - - - LANGUAGE - Langue - - - NAMES_OF_PRIVATE_VARIABLES - Noms des variables privees - - - PRECONDITIONING_FOR_DIFFUSION_OF_TRACERS - Preconditionnement pour la diffusion des traceurs - - - VALIDATION - Validation - - - NUMBER_OF_SIPHONS - Nombre de siphons - - - BINARY_ATMOSPHERIC_DATA_FILE_FORMAT - Format du fichier binaire de donnees atmospheriques - - - WEIRS_DATA_FILE - Fichier de donnees des seuils - - - IMPLICITATION_FOR_VELOCITY - Implicitation pour la vitesse - - - DEFINITION_OF_ZONES - Definition de zones - - - TOMAWAC - TOMAWAC - - - LISTING_PRINTOUT - Sortie listing - - - MEAN_DEPTH_FOR_LINEARIZATION - Profondeur moyenne pour la linearisation - - - COUPLING_PERIOD_FOR_TOMAWAC - Periode de couplage pour TOMAWAC - - - WAVE_ENHANCED_FRICTION_FACTOR - Augmentation du frottement par la houle - - - VARIABLES_FOR_GRAPHIC_PRINTOUTS - Variables pour les sorties graphiques - - - DEPTH_IN_FRICTION_TERMS - Hauteur dans les termes de frottement - - - MASS_LUMPING_ON_H - Mass-lumping sur H - - - NUMBER_OF_LAGRANGIAN_DRIFTS - Nombre de derives lagrangiennes - - - NON_DIMENSIONAL_DISPERSION_COEFFICIENTS - Coefficients adimensionnels de dispersion - - - FOURIER_ANALYSIS_PERIODS - Periodes d'analyse de fourier - - - VARIABLES_TO_BE_PRINTED - Variables a imprimer - - - EQUATIONS - Equations - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_IDENTIFICATION - Maximum d'iterations pour l'identification - - - WIND - Vent - - - SPEED_AND_DIRECTION_OF_WIND - Vitesse et direction du vent - - - NAMES_OF_CLANDESTINE_VARIABLES - Noms des variables clandestines - - - GEOMETRY_FILE_FORMAT - Format du fichier de geometrie - - - NON_SUBMERGED_VEGETATION_FRICTION - Frottement pour la vegetation non submergee - - - TYPE_OF_SOURCES - Type des sources - - - TIDAL_FLATS - Bancs decouvrants - - - TITLE - Titre - - - ORIGINAL_HOUR_OF_TIME - Heure de l'origine des temps - - - LAW_OF_FRICTION_ON_LATERAL_BOUNDARIES - Loi de frottement sur les parois laterales - - - FRICTION - FROTTEMENT - - - STAGE_DISCHARGE_CURVES_FILE - Fichier des courbes de tarage - - - DESIRED_COURANT_NUMBER - Nombre de courant souhaite - - - DISSIPATION_COEFFICIENT_FOR_SECONDARY_CURRENTS - Coefficient de dissipation pour courants secondaires - - - COUPLING_PERIOD_FOR_SISYPHE - Periode de couplage pour sisyphe - - - ALGAE_TRANSPORT_MODEL - Modele de transport des algues - - - ABSCISSAE_OF_SOURCES - Abscisses des sources - - - LIQUID_BOUNDARIES_FILE - Fichier des frontieres liquides - - - VELOCITIES_OF_THE_SOURCES_ALONG_X - Vitesses des sources selon X - - - VELOCITIES_OF_THE_SOURCES_ALONG_Y - Vitesses des sources selon Y - - - MAXIMUM_NUMBER_OF_SOURCES - Nombre maximum de sources - - - SOLVER_OPTION_FOR_TRACERS_DIFFUSION - Option du solveur pour la diffusion des traceurs - - - INFORMATION_ABOUT_SOLVER - Informations sur le solveur - - - BOUSSINESQ - BOUSSINESQ - - - BINARY_DATA_FILE_1_FORMAT - Format du fichier de donnees binaire 1 - - - DIAMETRE_OF_ALGAE - Diametre des algues - - - CONSTANT ELEVATION - COTE CONSTANTE - - - COUPLING_DIRECTORY - Dossier de couplage - - - DELWAQ_PRINTOUT_PERIOD - Periode de sortie pour DELWAQ - - - BOTTOM_SMOOTHINGS - Lissages du fond - - - AIR_PRESSURE - Pression atmospherique - - - PRESCRIBED_ELEVATIONS - Cotes imposees - - - MASS_LUMPING_FOR_WEAK_CHARACTERISTICS - Mass-lumping pour les caracteristiques faibles - - - GRAVITY_ACCELERATION - Acceleration de la pesanteur - - - LIMIT_VALUES - Valeurs limites - - - RESULTS_FILE - Fichier des resultats - - - SCHEME_OPTION_FOR_ADVECTION_OF_TRACERS - Option du schema pour la convection des traceurs - - - OPTION_FOR_CHARACTERISTICS - Option pour les caracteristiques - - - OPTION_FOR_THE_TREATMENT_OF_TIDAL_FLATS - Option de traitement des bancs decouvrants - - - TIME_RANGE_FOR_FOURIER_ANALYSIS - Bornes en temps pour l'analyse de fourier - - - VERTICAL_FLUXES_DELWAQ_FILE - Fichier DELWAQ des flux verticaux - - - ORDINATES_OF_SOURCES - Ordonnees des sources - - - SERAFIN - SERAFIN - - - MAXIMUM_NUMBER_OF_TRACERS - Nombre maximum de traceurs - - - TURBULENCE_REGIME_FOR_SOLID_BOUNDARIES - Regime de turbulence pour les parois - - - LOCAL_NUMBER_OF_THE_POINT_TO_CALIBRATE_HIGH_WATER - Numero local du point pour caler la pleine mer - - - NODES_DISTANCES_DELWAQ_FILE - Fichier DELWAQ des distances entre noeuds - - - NUMBER_OF_DROGUES - Nombre de flotteurs - - - SOLVER_FOR_K_EPSILON_MODEL - Solveur pour le modele K-Epsilon - - - SECTIONS_OUTPUT_FILE - Fichier de sortie des sections de controle - - - HARMONIC_CONSTANTS_FILE - Fichier des constantes harmoniques - - - OPTION_FOR_CULVERTS - Option pour les buses - - - ASCII_ATMOSPHERIC_DATA_FILE - Fichier ASCII de donnees atmospheriques - - - INITIAL_ELEVATION - Cote initiale - - - ZERO - Zero - - - BREACHES_DATA_FILE - Fichier de donnees des breches - - - OPTION_FOR_WIND - Option du vent - - - OPTION_OF_THE_HYDROSTATIC_RECONSTRUCTION - Option de la reconstrucion Hydrostatique - - - SERAFIND - SERAFIND - - - NUMBER_OF_TRACERS - Nombre de traceurs - - - DIFFUSIVITY_DELWAQ_FILE - Fichier DELWAQ de la diffusion - - - TPXO SATELLITE ALTIMETRY - ALTIMETRIE SATELLITE TPXO - - - ADVECTION_OF_TRACERS - Convection des traceurs - - - MED - MED - - - SOLVER_OPTION - Option du solveur - - - MATRIX_STORAGE - Stockage des matrices - - - COEFFICIENT_TO_CALIBRATE_TIDAL_RANGE - Coefficient de calage du marnage - - - BINARY_DATA_FILE_1 - Fichier de donnees binaire 1 - - - BINARY_DATA_FILE_2 - Fichier de donnees binaire 2 - - - CONTROL_OF_LIMITS - Controle des limites - - - RECORD_NUMBER_FOR_RESTART - Enregistrement pour suite de calcul - - - NUMBER_OF_GAUSS_POINTS_FOR_WEAK_CHARACTERISTICS - Nombre de points de Gauss pour les caracteristiques faibles - - - COEFFICIENT_OF_WIND_INFLUENCE - Coefficient d'influence du vent - - - PRECONDITIONING_FOR_K_EPSILON_MODEL - Preconditionnement pour le modele K-Epsilon - - - PRODUCTION_COEFFICIENT_FOR_SECONDARY_CURRENTS - Coefficient de production pour courants secondaires - - - MINIMUM_VALUE_OF_DEPTH - Valeur minimum de H - - - ELEMENTS_MASKED_BY_USER - Elements masques par l'utilisateur - - - FRICTION_COEFFICIENT - Coefficient de frottement - - - PRESCRIBED_VELOCITIES - Vitesses imposees - - - NAMES_OF_TRACERS - Noms des traceurs - - - SPECIAL - SPECIAL - - - VELOCITY_DELWAQ_FILE - Fichier DELWAQ de la vitesse - - - H_CLIPPING - Clipping de H - - - ZONE_NUMBER_IN_GEOGRAPHIC_SYSTEM - Numero de fuseau ou projection dans le systeme geographique - - - SUPG_OPTION - Option de SUPG - - - PARAMETER_ESTIMATION - Estimation de parametre - - - CHECKING_THE_MESH - Verification du maillage - - - AD_NUMBER_OF_DERIVATIVES - Ad nombre de derivees - - - COMPATIBLE_COMPUTATION_OF_FLUXES - Calcul compatible des flux - - - LIST_OF_FILES - Liste des fichiers - - - NUMBER_OF_PRIVATE_ARRAYS - Nombre de tableaux prives - - - MAXIMUM_NUMBER_OF_FRICTION_DOMAINS - Nombre maximum de domaines de frottement - - - DURATION - Duree du calcul - - - DELWAQ_STEERING_FILE - Fichier de commande DELWAQ - - - COEFFICIENT_1_FOR_LAW_OF_TRACERS_DEGRADATION - Coefficient 1 de la loi de degradation des traceurs - - - ACCURACY_OF_K - Precision sur k - - - PARTICULAR - PARTICULAR - - - WATER_QUALITY_PROCESS - Processus qualite d'eau - - - ADVECTION_OF_H - Convection de H - - - SCHEME_FOR_ADVECTION_OF_TRACERS - Schema pour la convection des traceurs - - - BINARY_DATA_FILE_2_FORMAT - Format du fichier de donnees binaire 2 - - - COEFFICIENT_TO_CALIBRATE_SEA_LEVEL - Coefficient de calage du niveau de mer - - - OPTION_FOR_THE_DIFFUSION_OF_VELOCITIES - Option pour la diffusion des vitesses - - - INITIAL_GUESS_FOR_H - Ordre du tir initial pour H - - - MASS_LUMPING_ON_TRACERS - Mass-lumping sur les traceurs - - - OPTION_FOR_LIQUID_BOUNDARIES - Option pour les frontieres liquides - - - GEOMETRY_FILE - Fichier de geometrie - - - WAQTEL_STEERING_FILE - Fichier des parametres de waqtel - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_ADVECTION_SCHEMES - Maximum d'iterations pour les schemas de convection - - - FLUXLINE_INPUT_FILE - Fichier de fluxline - - - RAIN_OR_EVAPORATION - Pluie ou evaporation - - - LAW_OF_BOTTOM_FRICTION - Loi de frottement sur le fond - - - MATRIX_VECTOR_PRODUCT - Produit matrice-vecteur - - - ACCURACY_FOR_DIFFUSION_OF_TRACERS - Precision pour la diffusion des traceurs - - - MEAN_TEMPERATURE - Temperature moyenne - - - FRICTION, STEADY - FROTTEMENT, PERMANENT - - - PARTITIONING_TOOL - Partitionneur - - - MAXIMUM_NUMBER_OF_BOUNDARIES - Nombre maximum de frontieres - - - OPTION_FOR_THE_SOLVER_FOR_K_EPSILON_MODEL - Option du solveur pour le modele K-Epsilon - - - SAINT-VENANT FV - SAINT-VENANT VF - - - SPATIAL_PROJECTION_TYPE - Type de projection spatiale - - - THRESHOLD_FOR_NEGATIVE_DEPTHS - Seuil pour les profondeurs negatives - - - DEFAULT_PARALLEL_EXECUTABLE - Executable parallele par defaut - - - INITIAL_GUESS_FOR_U - Ordre du tir initial pour U - - - DIFFUSION_OF_TRACERS - Diffusion des traceurs - - - DEFAULT_EXECUTABLE - Executable par defaut - - - FORMATTED_RESULTS_FILE - Fichier de resultats formate - - - VALUES_OF_TRACERS_IN_THE_RAIN - Valeurs des traceurs dans la pluie - - - VERTICAL_STRUCTURES - Structures verticales - - - MAXIMUM_NUMBER_OF_ITERATIONS_FOR_K_AND_EPSILON - Maximum d'iterations pour k et epsilon - - - UPWIND_COEFFICIENTS - Coefficients de decentrement - - - FRICTION_DATA - Donnees pour le frottement - - - NUMBER_OF_WEIRS - Nombre de seuils - - - OPTION_FOR_TSUNAMI_GENERATION - Option pour la generation de tsunami - - - VARIABLE_TIME_STEP - Pas de temps variable - - - WAVE_DRIVEN_CURRENTS - Courants de Houle - - - INFORMATION_ABOUT_K_EPSILON_MODEL - Informations sur le modele K-Epsilon - - - ZONES_FILE - Fichier des zones - - - SPHERICAL_COORDINATES - Coordonnees spheriques - - - NORTH - Nord - - - TREATMENT_OF_THE_LINEAR_SYSTEM - Traitement du systeme lineaire - - - REFERENCE_FILE - Fichier de reference - - - DENSITY_EFFECTS - Effets de densite - - - ASCII_DATABASE_FOR_TIDE - Base ASCII de donnees de maree - - - THRESHOLD_DEPTH_FOR_RECEDING_PROCEDURE - Profondeur limite pour procedure de ressuyage - - - OIL_SPILL_MODEL - Modele de nappes d'hydrocarbures - - - SOLVER - Solveur - - - TIME_STEP_REDUCTION_FOR_K_EPSILON_MODEL - Reduction du pas de temps pour le modele K-Epsilon - - - STOCHASTIC_DIFFUSION_MODEL - Modele de diffusion stochastique - - - ORIGINAL_DATE_OF_TIME - Date de l'origine des temps - - - GEOGRAPHIC_SYSTEM - Systeme geographique - - - FORTRAN_FILE - Fichier fortran - - - PROPAGATION_OPTION - Option de propagation - - - OIL_SPILL_STEERING_FILE - Fichier de commandes hydrocarbures - - - TIDAL_DATA_BASE - Base de donnees de maree - - - TIDAL_MODEL_FILE - Fichier du modele de maree - - - BREACH - Breche - - - SISYPHE - SISYPHE - - - TREATMENT_OF_NEGATIVE_DEPTHS - Traitement des hauteurs negatives - - - SCOTCH - SCOTCH - - - INITIAL_VALUES_OF_TRACERS - Valeurs initiales des traceurs - - - diff --git a/Telemac/transforme/ReadMe b/Telemac/transforme/ReadMe deleted file mode 100644 index f81dd842..00000000 --- a/Telemac/transforme/ReadMe +++ /dev/null @@ -1,10 +0,0 @@ -il faut les 2 fichiers cata_name2eng_name.ts et cata_name2fra_name.ts -./reEcrittsEn.py -i cata_name2eng_name.ts -d dicoCasEnToCata.py -t labelCataToIhmEn.ts -regler à la main les histoires de "" -modifier DicoCasEnToCata en dicoCataToEng - - -./reEcrittsFr.py -i cata_name2fra_name.ts -d dicoCasFrToCata.py -t labelCataToIhmFr.ts -regler à la main les histoires de "" -modifier DicoCasEnToCata en dicoCataToFr -attention a defaut default... diff --git a/VirtualPolymer/VP b/VirtualPolymer/VP deleted file mode 100644 index 983ed055..00000000 --- a/VirtualPolymer/VP +++ /dev/null @@ -1,5 +0,0 @@ -[c_pre_polymer_data_management] -gui = True -data_base = local/ -backup = False -folder_output = /tmp diff --git a/VirtualPolymer/editor.py.ssVP b/VirtualPolymer/editor.py.ssVP deleted file mode 100755 index 5ad0154e..00000000 --- a/VirtualPolymer/editor.py.ssVP +++ /dev/null @@ -1,1879 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2007-2013 EDF R&D -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# -from __future__ import absolute_import -from __future__ import print_function -try : - from builtins import str - from builtins import range -except : pass - -import types,sys,os, re -import subprocess -import traceback - -import six -from six.moves import range -from PyQt5.QtWidgets import QWidget, QMessageBox, QFileDialog, QApplication, QSplitter -from PyQt5.QtGui import QPalette -from PyQt5.QtCore import QProcess, QFileInfo, QTimer, Qt, QDir, QSize -import time -import pdb -from datetime import date -from Extensions.i18n import tr - -import traceback - -# Modules Eficas - -import convert, generator -from Editeur import session -from Editeur import comploader -from Editeur import Objecttreeitem -from desBaseWidget import Ui_baseWidget -from InterfaceQT4.monViewTexte import ViewText -from monWidgetCreeParam import MonWidgetCreeParam -from . import browser -from . import readercata - -DictExtensions= {"MAP" : ".map", "TELEMAC" : '.comm'} - - - - -class JDCEditor(Ui_baseWidget,QWidget): -# ----------------------------------------- # - """ - Editeur de jdc - """ - - def __init__ (self,appli,fichier = None, jdc = None, QWParent=None, units = None, include=0 , vm=None): - #----------------------------------------------------------------------------------------------------------# - - QWidget.__init__(self,None) - self.i=0 - self.setupUi(self) - self.inhibeSplitter=0 - self.widgetOptionnel=None - self.fenetreCentraleAffichee=None - self.dejaDansPlieTout=False - self.afficheCommandesPliees = True - self.listeDesListesOuvertes=set() - self.appliEficas = appli - self.appli = appli #---- attendu par IHM - self.vm = vm - self.fichier = fichier - self.jdc = jdc - self.first = True - self.QWParent = QWParent - self.couleur = Qt.black - self.nodeEnCours=None - - if appli != None : - self.salome = self.appliEficas.salome - else : - self.salome=0 - print ("dans JDC pas d appli ????????") - - # ces attributs sont mis a jour par definitCode appelee par newEditor - self.code = self.appliEficas.CONFIGURATION.code - self.initSplitterSizes() - - #self.afficheListesPliees=False - self.afficheListesPliees=True - if self.code == "ASTER" or self.code == "monCode" : self.afficheListesPliees =True - if self.code == 'PSEN_N1' : self.afficheListesPliees = False - - self.mode_nouv_commande=self.appliEficas.CONFIGURATION.mode_nouv_commande - self.closeAutreCommande=self.appliEficas.CONFIGURATION.closeAutreCommande - self.closeFrameRechercheCommande=self.appliEficas.CONFIGURATION.closeFrameRechercheCommande - self.closeArbre=self.appliEficas.CONFIGURATION.closeArbre - self.affiche=self.appliEficas.CONFIGURATION.affiche - self.afficheOptionnelVide=self.appliEficas.CONFIGURATION.afficheOptionnelVide - self.nombreDeBoutonParLigne = self.appliEficas.CONFIGURATION.nombreDeBoutonParLigne - self.dicoImages = self.appliEficas.CONFIGURATION.dicoImages - self.simpleClic = self.appliEficas.CONFIGURATION.simpleClic - #self.taille = self.appliEficas.taille - - #if self.code in ['MAP','CARMELCND','PSEN'] : self.afficheCommandesPliees=False - if self.code in ['MAP','CARMELCND'] : self.afficheCommandesPliees=False - if self.code in ['MAP',]: - self.widgetTree.close() - self.widgetTree=None - if self.closeArbre: self.fermeArbre() - - self.version_code = session.d_env.cata - - - if not hasattr ( self.appliEficas, 'readercata') or self.appliEficas.multi==True: - self.readercata = readercata.READERCATA( self, self.appliEficas ) - self.appliEficas.readercata=self.readercata - self.appliEficas.code=self.code - else : - self.readercata=self.appliEficas.readercata - if self.readercata.fic_cata == None : return #Sortie Salome - self.titre=self.readercata.titre - self.Ordre_Des_Commandes=self.readercata.Ordre_Des_Commandes - self.Classement_Commandes_Ds_Arbre=self.readercata.Classement_Commandes_Ds_Arbre - - self.format = self.appliEficas.format_fichier - - self.dict_reels={} - self.liste_simp_reel=[] - self.ihm="QT" - self.dicoNouveauxMC={} - self.dicoNouveauxFact={} - - nameConf='configuration_'+self.code - configuration=__import__(nameConf) - self.CONFIGURATION = self.appliEficas.CONFIGURATION - self.CONFIGStyle = self.appliEficas.CONFIGStyle - - try: - self.CONFIGURATION.generator_module - _module = __import__(self.CONFIGURATION.generator_module) - info = _module.entryPoint() - generator.plugins.addEntryPoint(info) - except: - pass - - try: - self.CONFIGURATION.convert_module - #print self.CONFIGURATION.convert_module - _module = __import__(self.CONFIGURATION.convert_module) - info = _module.entryPoint() - convert.plugins.addEntryPoint(info) - except : - pass - - self.sb = None - if hasattr(self.appliEficas,"statusBar"): - self.sb = self.appliEficas.statusBar() - - self.fileInfo = None - self.lastModified = 0 - - self.modified = False - self.isReadOnly = False - self.node_selected = [] - self.deplier = True - self.message='' - if self.code in ['Adao','ADAO','MAP'] : self.afficheApresInsert=True - else : self.afficheApresInsert=False - if self.code in ['TELEMAC',] : self.enteteQTree='premier' - else : self.enteteQTree='complet' - if self.code in ['Adao','ADAO','TELEMAC'] : self.affichePlie=True - else : self.affichePlie=False - - self.Commandes_Ordre_Catalogue =self.readercata.Commandes_Ordre_Catalogue - - #------- construction du jdc -------------- - - jdc_item = None - - self.nouveau=0 - if self.fichier is not None: # fichier jdc fourni - self.fileInfo = QFileInfo(self.fichier) - self.fileInfo.setCaching(0) - if jdc==None : - try : - self.jdc = self.readFile(self.fichier) - except : - print ("mauvaise lecture") - else : - self.jdc=jdc - if self.jdc is not None and units is not None: - self.jdc.recorded_units=units - self.jdc.old_recorded_units=units - else: - if not self.jdc: # nouveau jdc - if not include : - self.jdc = self._newJDC(units=units) - else : - self.jdc = self._newJDCInclude(units=units) - self.nouveau=1 - - if self.jdc: - self.jdc.appli = self # a resorber - self.jdc.editor = self - self.jdc.lang = self.appli.langue - self.jdc.aReafficher=False - txt_exception = None - if not jdc: - self.jdc.analyse() - txt_exception = self.jdc.cr.get_mess_exception() - if txt_exception: - self.jdc = None - QApplication.restoreOverrideCursor() - self.affiche_infos(tr("Erreur fatale au chargement de %s",str(fichier)),Qt.red) - if (self.appliEficas.ssIhm == False) : QMessageBox.critical( self, tr("Erreur fatale au chargement d'un fichier"), txt_exception) - else: - comploader.charger_composants("QT") - jdc_item=Objecttreeitem.make_objecttreeitem( self, "nom", self.jdc ) - if (not self.jdc.isvalid()) and (not self.nouveau) and (self.appliEficas.ssIhm == False): - self.viewJdcRapport() - - - - if jdc_item and self.appliEficas.ssIhm==False: - self.tree = browser.JDCTree( jdc_item, self ) - self.appliEficas.construitMenu() - - - ############# - self.adjustSize() - - - #-------------------# Pour execution avec output et error dans le bash - def runPSEN(self): - #-------------------# - - #if self.modified or self.fichier==None : self.saveFile() - self.saveFile() - - #lancement avec le .bat - path1 = os.path.abspath(os.path.join(os.path.abspath(__file__), '../','../','PSEN_Eficas','PSEN')) - WrapperFilePath = os.path.join(path1, 'PSSEWrapper.py') - import subprocess - p = subprocess.Popen(['python',WrapperFilePath]) - (out,err)=p.communicate() - print (out) - print (err) - - #-------------------# Pour execution avec output et error dans le bash - def runPSEN_N1(self): - #-------------------# - - - self.saveFile() - path1 = os.path.abspath(os.path.join(os.path.abspath(__file__), '../','../','ProcessOutputs_Eficas','TreatOutputs')) - sys.path.append(path1) - - if not(self.jdc.isvalid()): - QMessageBox.information( self, tr( "Unvalid JDC"),tr("incorrect keywords will be ignored")) - if 'dicoImbrique' in generator.plugins: - self.generator=generator.plugins['dicoImbrique']() - jdc_formate=self.generator.gener(self.jdc) - dico=self.generator.Dico - - ###to delete - #fileDico = r'C:\Logiciels DER\PSEN_V16\Code\ProcessOutputs_Eficas\TreatOutputs\dicoN1.py' - fileDico = os.path.join(path1, 'dicoN1.py') #r'C:\Logiciels DER\PSEN_V16\Code\ProcessOutputs_Eficas\TreatOutputs\dicoN1.py' - f = open( str(fileDico), 'w') - f.write("Dico =" + str(dico) ) - f.close() - ### - - - #print ('in runPSEN_N1', dico) - from Run import run - run(dico) - #res,txt_exception=run(dico) - #if res : QMessageBox.information( self, tr("fin de script run"), txt_exception) - #else : QMessageBox.critical( self, tr("Erreur fatale script run"), txt_exception) - - #-------------------# Pour execution avec output et error dans le bash - def process_N1(self): - #-------------------# - - path1 = os.path.abspath(os.path.join(os.path.abspath(__file__), '../','../','ProcessOutputs_Eficas','TreatOutputs')) - sys.path.append(path1) - - - if 'dicoImbrique' in generator.plugins: - self.generator=generator.plugins['dicoImbrique']() - jdc_formate=self.generator.gener(self.jdc) - dico=self.get_Dico() #generator.Dico - - - for k in dico['CONTINGENCY_PROCESSING']: - #print (k) - if k[0:19] == 'Component_List_For_' or k[0:21] =='Contingency_List_For_' : - newK=k.replace('___',' ') - l="'"+str(newK)+"'" - dico['CONTINGENCY_PROCESSING'][l]=dico['CONTINGENCY_PROCESSING'][k] - del dico['CONTINGENCY_PROCESSING'][k] - - ###to delete - fileDico = os.path.join(path1, 'dicoN1_process.py') - f = open( str(fileDico), 'w') - f.write("Dico =" + str(dico) ) - f.close() - ### - return dico - - #return self.get_Dico() - - #-------------------# Pour execution avec output et error dans le bash - def process_VP(self): - #-------------------# - if 'dicoImbrique' in generator.plugins: - self.generator=generator.plugins['dicoImbrique']() - jdc_formate=self.generator.gener(self.jdc) - dico=self.get_Dico() #generator.Dico - return dico - - - #--------------------------------# - def ajoutCommentaire(self): - #--------------------------------# - if self.tree.selectedItems()==[] : - QMessageBox.warning( self, tr("Pas de noeud selectionne"),tr("Selectionnez un Noeud \nLe commentaire sera place apres le noeud selectionne")) - return - noeudAvantCommentaire=self.tree.selectedItems()[0] - if noeudAvantCommentaire ==self.tree.racine : - self.tree.racine.append_child("COMMENTAIRE",pos=0) - return - noeudAvantCommentaire.addComment(True) - - - - #--------------------------------# - def _newJDC( self ,units = None): - #--------------------------------# - """ - Initialise un nouveau JDC vierge - """ - self.modified=1 - CONTEXT.unset_current_step() - - texte="" - if self.code == "CARMELCND" : texte=self._newJDCCND() - if self.code == "ZCRACKS" : texte=self._newZCRACKS() - if self.code == "TELEMAC" : texte=self._newTELEMAC() - if self.code == "PSEN" : texte = self._newPSEN() - if self.code == "PSEN_N1" : texte = self._newPSEN_N1() - - if hasattr(self.readercata.cata[0],'TEXTE_NEW_JDC') : texte=self.readercata.cata[0].TEXTE_NEW_JDC - - #if self.code == "CF" : texte = self._new_CF() - # texte=self.newTexteCND - - jdc=self.readercata.cata[0].JdC( procedure =texte, - appli=self, - cata=self.readercata.cata, - cata_ord_dico=self.readercata.cata_ordonne_dico, - rep_mat=self.CONFIGURATION.rep_mat - ) - jdc.lang = self.appli.langue - if units is not None: - jdc.recorded_units=units - jdc.old_recorded_units=units - ## PNPN est ce que la ligne suivante est bien utile ? - if texte == "" :jdc.analyse() - return jdc - - #--------------------------------# - def _newJDCInclude( self ,units = None): - #--------------------------------# - """ - Initialise un nouveau JDC vierge - """ - import Extensions.jdc_include - JdC_aux=Extensions.jdc_include.JdC_include - CONTEXT.unset_current_step() - - jaux=self.readercata.cata[0].JdC( procedure="", - appli=self, - cata=self.readercata.cata, - cata_ord_dico=self.readercata.cata_ordonne_dico, - rep_mat=self.CONFIGURATION.rep_mat, - ) - jaux.analyse() - - J=JdC_aux( procedure="", - appli=self, - cata=self.readercata.cata, - cata_ord_dico=self.readercata.cata_ordonne_dico, - jdc_pere=jaux, - rep_mat=self.CONFIGURATION.rep_mat, - ) - J.analyse() - if units is not None: - J.recorded_units=units - J.old_recorded_units=units - return J - - - #-------------------------------# - def readFile(self, fn): - #--------------------------------# - """ - Public slot to read the text from a file. - @param fn filename to read from (string or QString) - """ - fn = six.text_type(fn) - - # ------------------------------------------------------------------------------------ - # charge le JDC - # ------------------------------------------------------------------------------------ - - jdcName=os.path.basename(fn) - # Il faut convertir le contenu du fichier en fonction du format - if self.appliEficas.format_fichier_in in convert.plugins: - # Le convertisseur existe on l'utilise - #appli = self - p=convert.plugins[self.appliEficas.format_fichier_in]() - p.readfile(fn) - if p.text=="" : self.nouveau=1 - pareil,texteNew=self.verifieCHECKSUM(p.text) - #if texteNew == "" - if pareil == False and (self.appliEficas.ssIhm == False) : - QMessageBox.warning( self, tr("fichier modifie"),tr("Attention! fichier change hors EFICAS")) - p.text=texteNew - memeVersion,texteNew=self.verifieVersionCataDuJDC(p.text) - if memeVersion == 0 : texteNew=self.traduitCatalogue(texteNew) - p.text=texteNew - text=p.convert('exec',self.appliEficas) - if not p.cr.estvide(): - self.affiche_infos("Erreur a la conversion",Qt.red) - else : - self.affiche_infos("Type de fichier non reconnu",Qt.red) - if self.appliEficas.ssIhm == False: - QMessageBox.critical( self, tr("Type de fichier non reconnu"), - tr("EFICAS ne sait pas ouvrir le type de fichier %s" ,self.appliEficas.format_fichier_in)) - return None - - CONTEXT.unset_current_step() - jdc=self.readercata.cata[0].JdC(procedure=text, - appli=self, - cata=self.readercata.cata, - cata_ord_dico=self.readercata.cata_ordonne_dico, - nom=jdcName, - rep_mat=self.CONFIGURATION.rep_mat - ) - # ---------------------------------------------------- - # charge le JDC fin - # ---------------------------------------------------- - self.modified = False - -# qApp.restoreOverrideCursor() - if self.fileInfo!= None : - self.lastModified = self.fileInfo.lastModified() - else : - self.lastModified = 1 - nouveauTitre=self.titre+" "+str(os.path.basename(self.fichier)) - self.appliEficas.setWindowTitle(nouveauTitre) - return jdc - - - #-----------------------# - def get_source(self,file): - #-----------------------# - - # Il faut convertir le contenu du fichier en fonction du format - if self.format in convert.plugins : - # Le convertisseur existe on l'utilise - p=convert.plugins[self.format]() - p.readfile(file) - text=p.convert('execnoparseur') - if not p.cr.estvide(): - self.affiche_infos("Erreur a la conversion",Qt.red) - return text - else: - # Il n'existe pas c'est une erreur - self.affiche_infos("Type de fichier non reconnu",Qt.red) - QMessageBox.critical( self, tr("Type de fichier non reconnu"),tr("EFICAS ne sait pas ouvrir ce type de fichier")) - return None - - #-----------------------------------------------------------------------# - def _viewText(self, txt, caption = "FILE_VIEWER",largeur=1200,hauteur=600): - #--------------------------------------------------------------------# - w = ViewText( self.QWParent,self ,caption,txt,largeur,hauteur) - w.show() - # - - #----------------------------------------------# - def __generateTempFilename(self, prefix, suffix): - #----------------------------------------------# - import tempfile - (fd, filename) = tempfile.mkstemp(prefix=prefix, suffix=suffix) - os.close(fd) - return filename - # - - - #----------------------------------------------# - def _viewTextExecute(self, txt, prefix, suffix): - #----------------------------------------------# - self.w = ViewText( self.QWParent ) - self.w.setWindowTitle( "execution" ) - self.monExe=QProcess(self.w) - pid=self.monExe.pid() - nomFichier = self.__generateTempFilename(prefix, suffix = ".sh") - f=open(nomFichier,'w') - f.write(txt) - f.close() - self.monExe.readyReadStandardOutput.connect( self.readFromStdOut) - self.monExe.readyReadStandardError.connect( self.readFromStdErr) - exe='sh ' + nomFichier - self.monExe.start(exe) - self.monExe.closeWriteChannel() - self.w.exec_() - try: - commande="rm "+ nomFichier - os.system(commande) - except : - pass - - def readFromStdErr(self): - a=self.monExe.readAllStandardError() - self.w.view.append(str(a.data())) - - def readFromStdOut(self) : - a=self.monExe.readAllStandardOutput() - self.w.view.append(str(a.data())) - - def readFromStdErrQT4(self): - a=self.monExe.readAllStandardError() - self.w.view.append(QString.fromUtf8(a.data(),len(a))) ; - - def readFromStdOutQT4(self) : - a=self.monExe.readAllStandardOutput() - self.w.view.append(QString.fromUtf8(a.data(),len(a))) ; - - #-----------------------# - def generDico(self): - #-----------------------# - if 'dico' in generator.plugins: - self.generator=generator.plugins['dico']() - jdc_formate=self.generator.gener(self.jdc) - dico=self.generator.Dico - return dico - - #-----------------------# - def gestionParam(self): - #-----------------------# - w = MonWidgetCreeParam( self) - w.show() - - #-----------------------# - def viewJdcSource(self): - #-----------------------# - if self.fichier == None : return - f=open(self.fichier,'r') - texteSource=f.read() - f.close() - self._viewText(texteSource, "JDC_SOURCE") - - #-----------------------# - def viewJdcPy(self): - #-----------------------# - strSource = str( self.get_text_JDC(self.format) ) - self._viewText(strSource, "JDC_RESULTAT") - - #-----------------------# - def viewJdcRapport(self): - #-----------------------# - strRapport = six.text_type( self.jdc.report() ) - # on ajoute les regles - - self._viewText(strRapport, "JDC_RAPPORT") - - #-----------------------# - def viewJdcRegles(self): - #-----------------------# - if self.tree :self.tree.AppelleBuildLBRegles() - - - #----------------# - def closeIt(self): - #----------------# - """ - Public method called by the viewmanager to finally get rid of us. - """ - if self.jdc: - self.jdc.supprime() - self.close() - - #----------------------------------------------# - def affiche_infos(self,message,couleur=Qt.black): - #----------------------------------------------# - if self.sb: - mapalette=self.sb.palette() - mapalette.setColor( QPalette.WindowText, couleur ) - self.sb.setPalette( mapalette ); - self.sb.showMessage(message,4000) - self.couleur=couleur - - #------------------------------# - def affiche_alerte(self,titre,message): - #------------------------------# - # appele par I_MACRO_ETAPE - QMessageBox.information( self, titre, message) - - #-----------------------------------# - def affiche_commentaire(self,message): - #-----------------------------------# - self.labelCommentaire.setText(message) - QTimer.singleShot(6000, self.rendInvisible) - - #----------------------# - def rendInvisible(self): - #----------------------# - self.labelCommentaire.setText("") - - #-------------------# - def init_modif(self): - #-------------------# - """ - Met l'attribut modified a 'o' : utilise par Eficas pour savoir - si un JDC doit etre sauvegarde avant destruction ou non - """ - self.modified = True - - #---------------------------------------# - def chercheNoeudSelectionne(self,copie=1): - #---------------------------------------# - """ - appele par Cut et Copy pour positionner self.node_selected - """ - self.node_selected=[] - if len(self.tree.selectedItems()) == 0 : return - self.node_selected=self.tree.selectedItems() - - - #---------------------# - def handleSupprimer(self): - #---------------------# - self.chercheNoeudSelectionne() - if len(self.node_selected) == 0 : return - self.QWParent.noeud_a_editer = [] - if self.node_selected[0]==self.tree.racine: return - if len(self.node_selected) == 1 : self.node_selected[0].delete() - else : self.node_selected[0].deleteMultiple(self.node_selected) - - #---------------------# - def handleRechercher(self): - #---------------------# - from .monRecherche import DRecherche - monRechercheDialg=DRecherche(parent=self,fl=0) - monRechercheDialg.show() - - - #--------------------------------# - def handleRechercherDsCatalogue(self): - #-----------------------------# - from .monRechercheCatalogue import DRechercheCatalogue - monRechercheDialg=DRechercheCatalogue(self.QWParent,self) - monRechercheDialg.show() - - #---------------------# - def handleDeplier(self): - #---------------------# - if self.tree == None : return - #self.tree.collapseAll() - if self.deplier : - #print "je plie" - self.tree.expandItem(self.tree.topLevelItem(0)) - self.deplier = False - if self.fenetreCentraleAffichee != None : - if hasattr(self.fenetreCentraleAffichee.node,'plieToutEtReaffiche'): - self.fenetreCentraleAffichee.node.plieToutEtReaffiche() - else: - #print "je deplie" - self.tree.expandItem(self.tree.topLevelItem(0)) - self.deplier = True - if self.fenetreCentraleAffichee != None : - if hasattr(self.fenetreCentraleAffichee.node,'deplieToutEtReaffiche'): - self.fenetreCentraleAffichee.node.deplieToutEtReaffiche() - - #---------------------# - def handleEditCut(self): - #---------------------# - """ - Stocke dans Eficas.noeud_a_editer le noeud a couper - """ - #print "handleEditCut" - self.chercheNoeudSelectionne() - self.QWParent.edit="couper" - self.QWParent.noeud_a_editer = self.node_selected - - #-----------------------# - def handleEditCopy(self): - #-----------------------# - """ - Stocke dans Eficas.noeud_a_editer le noeud a copier - """ - self.chercheNoeudSelectionne() - if len(self.node_selected) == 0 : return - if len(self.node_selected) == 1 : self.node_selected[0].update_node_label_in_blue() - else : self.node_selected[0].update_plusieurs_node_label_in_blue(self.node_selected) - self.QWParent.edit="copier" - self.QWParent.noeud_a_editer = self.node_selected - - #------------------------# - def handleEditPaste(self): - #------------------------# - """ - Lance la copie de l'objet place dans self.QWParent.noeud_a_editer - Ne permet que la copie d'objets de type Commande ou MCF - """ - self.chercheNoeudSelectionne() - if (not(hasattr(self.QWParent,'noeud_a_editer'))) or len(self.QWParent.noeud_a_editer)==0: - QMessageBox.information( self, - tr("Copie impossible"), - tr("Veuillez selectionner un objet a copier")) - return - if len(self.node_selected) != 1 : - QMessageBox.information( self, - tr("Copie impossible"), - tr("Veuillez selectionner un seul objet : la copie se fera apres le noeud selectionne")) - return - noeudOuColler=self.node_selected[0] - - if len(self.QWParent.noeud_a_editer)!=1: - #self.handleEditPasteMultiple() - QMessageBox.information( self, tr("Copie impossible"), tr("Aucun Objet n a ete copie ou coupe")) - return - - noeudACopier=self.QWParent.noeud_a_editer[0] - - if (self.QWParent.edit != "couper"): - #print (noeudOuColler.item.parent.get_child(noeudOuColler.item.nom)) - try: - if noeudOuColler == self.tree.racine : - child=noeudOuColler.doPastePremier(noeudACopier) - else : - child=noeudACopier.doPaste(noeudOuColler,'after') - - if child==None or child==0: - QMessageBox.critical( self,tr( "Copie refusee"),tr('Eficas n a pas reussi a copier l objet')) - self.message = '' - self.affiche_infos("Copie refusee",Qt.red) - if noeudACopier.treeParent.editor != noeudOuColler.treeParent.editor: - try : - nom=noeudACopier.item.sd.nom - child.item.nomme_sd(nom) - except : - pass - return - self.init_modif() - child.select() - except : - traceback.print_exc() - QMessageBox.critical( self,tr( "Copie refusee"),tr('Copie refusee pour ce type d objet')) - self.message = '' - self.affiche_infos("Copie refusee",Qt.red) - return - - # il faut declarer le JDCDisplay_courant modifie - # suppression eventuelle du noeud selectionne - # si possible on renomme l objet comme le noeud couper - - if (self.QWParent.edit == "couper"): - print ('je pass la') - if noeudACopier.treeParent.editor != noeudOuColler.treeParent.editor: - QMessageBox.critical( self, tr("Deplacement refuse"),tr('Deplacement refuse entre 2 fichiers. Seule la copie est autorisee ')) - - #if 1: - try : - # indexNoeudACopier=noeudACopier.treeParent.children.index(noeudACopier) - indexNoeudACopier=self.getTreeIndex(noeudACopier) - noeudACopier.treeParent.item.deplaceEntite(indexNoeudACopier,indexNoeudOuColler,pos) - noeudACopier.treeParent.build_children() - - #else: - except: - pass - self.QWParent.noeud_a_editer=[] - - # on rend la copie a nouveau possible en liberant le flag edit - self.QWParent.edit="copier" - noeudACopier.select() - - #----------------------------------# - def handleDeplaceMultiple(self): - #----------------------------------# - pass - - #----------------------------------# - def handleEditPasteMultiple(self): - #----------------------------------# - - # On ne garde que les niveaux "Etape" - # On insere dans l'ordre du JDC - listeNoeudsACouper=[] - listeIndex=[] - listeChild=[] - listeItem=[] - from InterfaceQT4 import compojdc - noeudOuColler=self.node_selected[0] - if not (isinstance(noeudOuColler.treeParent, compojdc.Node)): - QMessageBox.information( self, - tr("Copie impossible a cet endroit",), - tr("Veuillez selectionner une commande, un parametre, un commentaire ou une macro")) - return - indexNoeudOuColler=noeudOuColler.treeParent.children.index(noeudOuColler) - - for noeud in self.QWParent.noeud_a_editer : - if not (isinstance(noeud.treeParent, compojdc.Node)): continue - indexInTree=noeud.treeParent.children.index(noeud) - indice = 0 - for index in listeIndex: - if index < indexInTree : indice = indice +1 - listeIndex.insert(indice, indexInTree) - listeNoeudsACouper.insert(indice, noeud) - - noeudJdc=noeudOuColler.treeParent - dejaCrees=0 - # on les cree a l'envers parcequ'on ajoute a NoeudOuColler - listeIndex.reverse() - for index in listeIndex: - indexTravail=index - if indexNoeudOuColler < index: - indexTravail=indexTravail+dejaCrees - noeudOuColler=noeudJdc.children[indexNoeudOuColler] - noeud=noeudJdc.children[indexTravail] - child=noeud.doPaste(noeudOuColler) - listeChild.append(child) - dejaCrees=dejaCrees+1 - - self.QWParent.noeud_a_editer = [] - for i in range(len(listeIndex)): - noeud=noeudJdc.children[indexNoeudOuColler+1+i] - self.QWParent.noeud_a_editer.append(noeud) - - listeASupprimer=[] - if self.QWParent.edit !="couper" : return - - for index in listeIndex: - indexTravail=index - if indexNoeudOuColler < index: - indexTravail=indexTravail+(len(listeIndex)) - noeud=noeudJdc.children[indexTravail] - - listeItem.append(noeud.item) - listeASupprimer.append(noeud) - - for i in range(len(listeChild)): - self.tree.item.suppitem(listeItem[i]) - listeChild[i].item.update(listeItem[i]) - - self.QWParent.noeud_a_editer = [] - - - #---------------------# - def getFileName(self): - #---------------------# - return self.fichier - - #---------------------------# - def get_file_variable(self) : - #---------------------------# - titre = tr("Choix d'un fichier XML") - texte = tr("Le fichier contient une commande MODEL\n") - texte = texte+tr('Donnez le nom du fichier XML qui contient la description des variables') - QMessageBox.information( self, titre,tr(texte)) - - fichier = QFileDialog.getOpenFileName(self.appliEficas, - tr('Ouvrir Fichier'), - self.appliEficas.CONFIGURATION.savedir, - tr('Wrapper Files (*.xml);;''All Files (*)')) - return fichier - - #--------------------------------------------------# - def writeFile(self, fn, txt = None,formatLigne="beautifie"): - #--------------------------------------------------# - """ - Public slot to write the text to a file. - - @param fn filename to write to string - @return flag indicating success - """ - - fn = six.text_type(fn) - - if txt == None : - txt = self.get_text_JDC(self.format,formatLigne=formatLigne) - eol = '\n' - if len(txt) >= len(eol): - if txt[-len(eol):] != eol: - txt += eol - else: - txt += eol - txt=self.ajoutVersionCataDsJDC(txt) - checksum=self.get_checksum(txt) - txt=txt+checksum - if self.code=="TELEMAC" : return 1 - try: - f = open(fn, 'w') - f.write(txt) - f.close() - return 1 - except IOError as why: - if (self.appliEficas.ssIhm == False): - QMessageBox.critical(self, tr('Sauvegarde du Fichier'), - tr('Le fichier')+str(fn) + tr('n a pas pu etre sauvegarde : ') + str(why)) - else : - print (why) - return 0 - - #-----------------------------------------------------------# - def get_text_JDC(self,format,pourRun=0,formatLigne="beautifie"): - #-----------------------------------------------------------# - if self.code == "MAP" and not(format in generator.plugins): format = "MAP" - if format in generator.plugins: - - # Le generateur existe on l'utilise - self.generator=generator.plugins[format]() - try : - jdc_formate=self.generator.gener(self.jdc,format=formatLigne,config=self.appliEficas.CONFIGURATION,appli=self.appliEficas) - if pourRun : jdc_formate=self.generator.textePourRun - if self.code == 'TELEMAC' : jdc_formate=self.generator.texteDico - except ValueError as e: - QMessageBox.critical(self, tr("Erreur a la generation"),str(e)) - return - - if not self.generator.cr.estvide(): - self.affiche_infos(tr("Erreur a la generation"),Qt.red) - QMessageBox.critical( self, tr("Erreur a la generation"),tr("EFICAS ne sait pas convertir ce JDC")) - return "" - else: - return jdc_formate - else: - # Il n'existe pas c'est une erreur - self.affiche_infos(tr("Format %s non reconnu" , self.format),Qt.red) - QMessageBox.critical( self, "Format non reconnu" ,tr("EFICAS ne sait pas convertir le JDC selon le format "+ self.format)) - return "" - - #----------------------# - def get_Dico(self): - #---------------------# - if 'dicoImbrique' in generator.plugins: - self.generator=generator.plugins['dicoImbrique']() - jdc_formate=self.generator.gener(self.jdc) - dico=self.generator.Dico - return dico - else : - self.affiche_infos(tr("Format %s non reconnu" , self.format),Qt.red) - QMessageBox.critical( self, "Format non reconnu" ,tr("EFICAS ne sait pas convertir le JDC selon le format "+ self.format)) - return "" - - - #------------# - def run(self): - #------------# - fonction="run"+self.code - #print fonction - if fonction in JDCEditor.__dict__: JDCEditor.__dict__[fonction],(self,) - - #------------# - def saveRun(self): - #------------# - fonction="saveRun"+self.code - if fonction in JDCEditor.__dict__: JDCEditor.__dict__[fonction],(self,) - - #---------------# - def runMAP(self): - #---------------# - - if not(self.jdc.isvalid()): - QMessageBox.critical( self, tr( "Execution impossible "),tr("le JDC doit etre valide pour une execution MAP")) - return - if len(self.jdc.etapes) != 1 : - QMessageBox.critical( self, tr("Execution impossible "),tr("le JDC doit contenir un et un seul composant")) - return - if self.modified or self.fichier==None : - self.fichierMapInput = self.__generateTempFilename(prefix = "map_run", suffix = ".map") - texte=self.get_text_JDC("MAP") - self.writeFile( self.fichierMapInput, txt = texte) - else : - self.fichierMapInput=self.fichier - composant=self.jdc.etapes[0].nom.lower()[0:-5] - - - # :TRICKY: to determine if a component requires SALOME, loads the component from Eficas catalog - # then instantiate corresponding class and call getUseSalome() method - try: - from mapengine.spec import factory - mapComponent = factory.new(composant)[0] - - command = "map" - if mapComponent.getUseSalome(): - command += " -r sappli" - textePython=(command + " run -n "+composant +" -i "+self.fichierMapInput) - - #textePython="ls -l" - self._viewTextExecute( textePython,"map_run",".sh") - #try: - # commande="rm "+self.fichierMapInput - # os.system(commande) - #except : - # pass - except Exception as e: - print((traceback.print_exc())) - - #-------------------# - def runZCRACKS(self): - #-------------------# - if not(self.jdc.isvalid()): - QMessageBox.critical( self, tr( "Execution impossible "),tr("le JDC doit etre valide pour une execution ")) - return - if self.modified or self.fichier==None : - #if 1: - self.fichierZcracksInput = self.__generateTempFilename(prefix = "zcracks_run", suffix = ".z7p") - texte=self.get_text_JDC("ZCRACKS",pourRun=1) - self.writeFile( self.fichierZcracksInput, txt = texte) - else : - self.fichierZcracksInput=self.fichier - try : - #commande ="Zrun -zp " - commande="more " - textePython=(commande + self.fichierZcracksInput) - self._viewTextExecute( textePython,"run_zcracks",".sh") - except Exception as e: - print((traceback.print_exc())) - - #-------------------# - def runCARMELCND(self): - #-------------------# - #if not(self.jdc.isvalid()): - # QMessageBox.critical( self, tr( "Execution impossible "),tr("le JDC doit etre valide pour une execution ")) - # return - if self.modified or self.fichier==None : - QMessageBox.critical( self, tr( "Execution impossible "),tr("Sauvegarder SVP avant l'execution ")) - return - if not hasattr(self,'generator'): texte=self.get_text_JDC(self.format) - from PrepareRunCarmel import prepareRunCarmel - fichierGenerique=os.path.basename(self.fichier).split(".")[0] - repMed=os.path.dirname(self.fichier) - repExeCarmel=self.generator.get_repExeCarmel() - textePython=prepareRunCarmel(repExeCarmel,repMed,fichierGenerique) - nomFichier = self.__generateTempFilename("carmel_run", suffix = ".sh") - f=open(nomFichier,'w') - f.write(textePython) - f.close() - commande="xterm -e sh "+nomFichier +"\n" - os.system(commande) - - #-------------------# - def runCarmelCS(self): - #-------------------# - try : - commande="runSession pilotyacsCS.py" - os.system(commande) - except Exception as e: - print((traceback.print_exc())) - - #-----------------------------------------------------# - def determineNomFichier(self,path,extension): - #-----------------------------------------------------# - if self.appli.code in DictExtensions: - chaine1="JDC (*"+DictExtensions[self.appli.code]+");;" - extensions= tr(chaine1+ "All Files (*)") - else : - extensions= tr("JDC (*.comm);;" "All Files (*)") - - if self.appli.code == "MAP" : - extensions = extensions + ";; Run (*.input);;" - - fn = QFileDialog.getSaveFileName( self, - tr("sauvegarde"), path, - extensions,None, - QFileDialog.DontConfirmOverwrite) - if fn == None : return (0, None) - fn=fn[0] - if fn=='': return (0, None) - - ext = QFileInfo(fn).suffix() - if ext == '': fn+=extension - - if QFileInfo(fn).exists(): - msgBox = QMessageBox(self) - msgBox.setWindowTitle(tr("Sauvegarde du Fichier")) - msgBox.setText(tr("Le fichier %s existe deja.", six.text_type(fn))) - msgBox.addButton(tr("&Ecraser"),0) - msgBox.addButton(tr("&Abandonner"),1) - abort=msgBox.exec_() - if abort == 1 : return (0, "") - return (1,fn) - - #-----------------# - def saveRunMAP(self): - #-----------------# - extension=".input" - if not(self.jdc.isvalid()): - QMessageBox.critical( self, tr( "Sauvegarde de l'input impossible "), - tr("Un JdC valide est necessaire pour creer un .input") - ) - return - try : - composant=self.jdc.etapes[0].nom.lower()[0:-5] - except : - QMessageBox.critical( self, tr( "Sauvegarde de l'input impossible "), - tr("Choix du composant obligatoire") - ) - return - if hasattr(self.CONFIGURATION, "savedir"): path=self.CONFIGURATION.savedir - else : path='C:/' - - monNomFichier="" - if self.fichier is not None and self.fichier != "" : - maBase=str(QFileInfo(self.fichier).baseName())+".input" - monPath=str(QFileInfo(self.fichier).absolutePath()) - monNomFichier=os.path.join(monPath,maBase) - elif hasattr(self,'monNomFichierInput'): - monNomFichier=self.monNomFichierInput - - - monDialog=QFileDialog(self.appliEficas) - monDialog.setDirectory (path) - monDialog.setWindowTitle ("Save") - - for c in monDialog.children(): - if isinstance(c,QDialogButtonBox): - for b in c.children(): - if isinstance(b,QPushButton): - avant=b.text() - if avant=="&Open": b.setText("Save") - mesFiltres= "input Map (*.input);;All Files (*)" - monDialog.setNameFilters(mesFiltres) - if monNomFichier!="" : monDialog.selectFile(monNomFichier) - BOk=monDialog.exec_() - if BOk==0: return - fn=str(monDialog.selectedFiles()[0]) - if fn == "" or fn == None : return - if not fn.endswith(".input"): - fn += ".input" - self.monNomFichierInput=fn - - if not hasattr(self, 'fichierMapInput') or not self.fichierMapInput or not os.path.exists(self.fichierMapInput): - self.fichierMapInput = self.__generateTempFilename(prefix = "map_run", suffix = ".map") - texte=self.get_text_JDC("MAP") - self.writeFile( self.fichierMapInput, txt = texte) - - cmd = ("map gen -t dat -n " + composant + " -i " + self.fichierMapInput + " -o " + fn) - p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) - (output, err) = p.communicate() - - - #-----------------# - def saveRunPSEN(self): - #-----------------# - #print ("saveRunPSEN") - self.saveFile() - - - #-----------------------------------------# - def cherche_Groupes(self): - #-----------------------------------------# - listeMA,listeNO=self.get_text_JDC("GroupMA") - return listeMA,listeNO - - #-----------------------------------------# - def cherche_Dico(self): - #-----------------------------------------# - dicoCourant={} - format = self.appliEficas.format_fichier - if format in generator.plugins: - # Le generateur existe on l'utilise - self.generator=generator.plugins[format]() - jdc_formate=self.generator.gener(self.jdc,format='beautifie',config=self.appliEficas.CONFIGURATION) - dicoCourant=self.generator.dico - return dicoCourant - - - - #-----------------------------------------# - def handleAjoutGroup(self,listeGroup): - #-----------------------------------------# - try : - #if 1: - from ajoutGroupe import handleAjoutGroupFiltre - #print listeGroup - handleAjoutGroupFiltre(self,listeGroup) - #print "apres handleAjoutGroupFiltre" - except : - #else : - pass - - #-----------------------------------------------------------------# - def saveFileLeger(self, path = None, saveas= 0,formatLigne="beautifie"): - #-----------------------------------------------------------------# - extension='.casR' - fn = self.fichier - #saveas=True # Pour forcer le nom - self.generator=generator.plugins[self.format]() - if self.fichier is None or saveas: - if path is None: path=self.CONFIGURATION.savedir - bOK, fn=self.determineNomFichier(path,extension) - if bOK == 0 : return (0, None) - if fn == None : return (0, None) - if fn== '' : return (0, None) - - ulfile = os.path.abspath(six.text_type(fn)) - self.appliEficas.CONFIGURATION.savedir=os.path.split(ulfile)[0] - fn = six.text_type(QDir.toNativeSeparators(fn)) - - self.fichier = os.path.splitext(fn)[0]+extension - - if hasattr(self.generator, "writeLeger"): - self.generator.writeLeger(self.fichier,self.jdc,config=self.appliEficas.CONFIGURATION,appli=self.appliEficas) - - if self.salome : self.appliEficas.addJdcInSalome( self.fichier) - - self.modified = 0 - nouveauTitre=self.titre+" "+str(os.path.basename(self.fichier)) - self.appliEficas.setWindowTitle(nouveauTitre) - return (1, self.fichier) - - #-----------------------------------------------------------------# - def saveFile(self, path = None, saveas= 0,formatLigne="beautifie"): - #-----------------------------------------------------------------# - """ - Public slot to save the text to a file. - - @param path directory to save the file in (string or QString) - @return tuple of two values (boolean, string) giving a success indicator and - the name of the saved file - """ - - self.modified=1 - if not self.modified and not saveas: - return (0, None) # do nothing if text wasn't changed - - if self.appli.code in DictExtensions : - extension=DictExtensions[self.appli.code] - else : - extension='.comm' - - newName = None - fn = self.fichier - if self.fichier is None or saveas: - if path is None: path=self.CONFIGURATION.savedir - bOK, fn=self.determineNomFichier(path,extension) - if bOK == 0 : return (0, None) - if fn == None : return (0, None) - if fn== '' : return (0, None) - - ulfile = os.path.abspath(six.text_type(fn)) - self.appliEficas.CONFIGURATION.savedir=os.path.split(ulfile)[0] - fn = six.text_type(QDir.toNativeSeparators(fn)) - newName = fn - - - if not (self.writeFile(fn,formatLigne=formatLigne)): return (0, None) - self.fichier = fn - self.modified = False - if self.fileInfo is None or saveas: - self.fileInfo = QFileInfo(self.fichier) - self.fileInfo.setCaching(0) - self.lastModified = self.fileInfo.lastModified() - if newName is not None: - self.appliEficas.addToRecentList(newName) - self.tree.racine.item.getObject().nom=os.path.basename(newName) - self.tree.racine.update_node_label() - - if self.jdc.isvalid() != 0 and hasattr(self.generator, "writeDefault"): - self.generator.writeDefault(fn) - elif self.code=="TELEMAC" and hasattr(self.generator, "writeDefault"): - self.generator.writeDefault(fn) - - if self.salome : - self.appliEficas.addJdcInSalome( self.fichier) - self.modified = 0 - nouveauTitre=self.titre+" "+str(os.path.basename(self.fichier)) - self.appliEficas.setWindowTitle(nouveauTitre) - - return (1, self.fichier) -# - - #----------------------------------------------# - def sauveLigneFile(self): - #----------------------------------------------# - self.modified=1 - return self.saveFile(formatLigne="Ligne") - - - #----------------------------------------------# - def saveFileAs(self, path = None,fileName=None): - #----------------------------------------------# - """ - Public slot to save a file with a new name. - - @param path directory to save the file in (string or QString) - @return tuple of two values (boolean, string) giving a success indicator and - the name of the saved file - """ - if fileName != None : - self.fichier = fileName - return self.saveFile() - return self.saveFile(path,1,"beautifie") - - - - #---------------------------------------------# - def get_file(self,unite=None,fic_origine = ''): - #---------------------------------------------# - # appele par I_JDC - ulfile = None - jdcText = "" - - titre = "" - - if unite : - titre = tr("Choix unite %d ", unite) - texte = tr("Le fichier %s contient une commande INCLUDE \n", str(fic_origine)) +"\n" - texte = texte+ tr("Donnez le nom du fichier correspondant a l unite logique ") + repr(unite) - labeltexte = tr('Fichier pour unite ') + repr( unite) - else: - titre = tr("Choix d'un fichier de poursuite") - texte = tr("Le fichier %s contient une commande POURSUITE\n", fic_origine) - texte = texte+tr('Donnez le nom du fichier dont vous \n voulez faire une poursuite') - - QMessageBox.information( self, titre,texte) - fn = QFileDialog.getOpenFileName(self.appliEficas, - titre, - self.appliEficas.CONFIGURATION.savedir) - - # ce retour est impose par le get_file d'I_JDC - if fn== '' : return None," " - if not fn : return (0, " ") - fn=fn[0] - - ulfile = os.path.abspath(six.text_type(fn)) - self.appliEficas.CONFIGURATION.savedir=os.path.split(ulfile)[0] - - # On utilise le convertisseur defini par format_fichier - source=self.get_source(ulfile) - if source: - # On a reussia convertir le fichier self.ulfile - jdcText = source - else: - # Une erreur a ete rencontree - jdcText = '' - return ulfile, jdcText - - #-------------------------------# - def updateJdc(self, itemApres,texte): - #--------------------------------# - monItem=itemApres - etape=monItem.item.object - - CONTEXT.set_current_step(etape) - etape.build_includeInclude(texte) - self.tree.racine.build_children() - - #-------------------------------------# - def deleteEtape(self,etape): - #-------------------------------------# - self.jdc.suppentite(etape) - - #-------------------------------------# - def deleteMC(self,etape,MCFils,listeAvant=()): - #-------------------------------------# - ouChercher=etape - for mot in listeAvant : - ouChercher=ouChercher.get_child(mot,restreint="oui") - monMC=ouChercher.get_child(MCFils,restreint="oui") - if monMC != None : ouChercher.suppentite(monMC) - ouChercher.state='changed' - ouChercher.isvalid() - - #-------------------------------------# - def ajoutMC(self,etape,MCFils,valeurs,listeAvant=()): - #-------------------------------------# - ouChercher=etape - for mot in listeAvant : - ouChercher=ouChercher.get_child(mot,restreint="oui") - monMC=etape.get_child(ouChercher,restreint="oui") - if monMC== None : monMC= ouChercher.addentite(MCFils) - monMC.valeur=valeurs - monMC.val=valeurs - monMC.state='changed' - monMC.isvalid() - - #-------------------------------------# - def getValeur(self,nomEtape,MCFils,listeAvant=()): - #-------------------------------------# - - ouChercher=None - for e in self.jdc.etapes: - if e.nom == nomEtape : ouChercher=e; break - if ouChercher==None : return None - for mot in listeAvant : - ouChercher=ouChercher.get_child(mot,restreint="oui") - if ouChercher==None : return None - monMC=ouChercher.get_child(MCFils,restreint="oui") - if monMC== None : return None - return monMC.valeur - - #-----------------------------------------------------------# - def changeIntoMC(self,etape,MCFils,valeurs, listeAvant=()): - #-----------------------------------------------------------# - ouChercher=etape - if isinstance (etape, str): - ouChercher=None - for e in self.jdc.etapes: - if e.nom == etape : ouChercher=e; break - if ouChercher==None : return - - for mot in listeAvant : - ouChercher=ouChercher.get_child(mot,restreint="oui") - if ouChercher==None : return - monMC=ouChercher.get_child(MCFils,restreint="oui") - if monMC== None : monMC= ouChercher.addentite(MCFils) - - monMC.definition.into=valeurs - from Noyau.N_VALIDATOR import IntoProtocol - monMC.definition.intoProto = IntoProtocol("into", into=monMC.definition.into, val_min=monMC.definition.val_min, val_max=monMC.definition.val_max) - monMC.state='changed' - monMC.isvalid() - - #-------------------------------------------------------------------# - def reCalculeValiditeMCApresChgtInto(self,nomEtape,MCFils,listeAvant=()): - #-------------------------------------------------------------------# - for e in self.jdc.etapes: - if e.nom == nomEtape : ouChercher=e; break - - for mot in listeAvant : - try : - ouChercher=ouChercher.get_child(mot,restreint="oui") - # Le mot clef n est pas la - except : return 0 - try : - monMC=ouChercher.get_child(MCFils,restreint="oui") - # Le mot clef n est pas la - except : return 0 - if monMC == None : return 0 - - if hasattr(monMC.definition,'into') : - if type(monMC.definition.into) ==types.FunctionType : maListeDeValeur=monMC.definition.into() - else : maListeDeValeur=monMC.definition.into - else : - return 0 - - monMC.state='changed' - return 1 - - #-------------------------------------# - def changeDefautDefMC(self,nomEtape,listeMC,valeurs): - #-------------------------------------# - - #if isinstance (etape, str): - # for e in self.jdc.etapes: - # if e.nom == etape : etape=e; break - #if etape == None : return - definitionEtape=getattr(self.jdc.cata[0],nomEtape) - ouChercher=definitionEtape - if len(listeMC) > 1 : - - for mc in listeMC[0:-1]: - mcfact=ouChercher.entites[mc] - ouChercher=mcfact - - mcAccas=ouChercher.entites[listeMC[-1]] - mcAccas.defaut=valeurs - return 1 - - #------------------------------------------------# - def changeIntoDefMC(self,nomEtape,listeMC,valeurs): - #------------------------------------------------# - definitionEtape=getattr(self.jdc.cata[0],nomEtape) - ouChercher=definitionEtape - - if len(listeMC) > 1 : - for mc in listeMC[0:-1]: - mcfact=ouChercher.entites[mc] - ouChercher=mcfact - mcAccas=ouChercher.entites[listeMC[-1]] - - if hasattr(mcAccas,'into') : oldValeurs=mcAccas.into - else : oldValeurs=None - if oldValeurs==valeurs : return 0 - - mcAccas.into=valeurs - from Noyau.N_VALIDATOR import IntoProtocol - mcAccas.intoProto = IntoProtocol("into", into=valeurs, val_min=mcAccas.val_min, val_max=mcAccas.val_max) - return 1 - - #-------------------------------------------------------------# - def deleteDefinitionMC(self,etape,listeAvant,nomDuMC): - #-------------------------------------------------------------# - #print 'in deleteDefinitionMC', etape,listeAvant,nomDuMC - if isinstance (etape, str): - for e in self.jdc.etapes: - if e.nom == etape : etape=e; break - if etape == None : return - definitionEtape=getattr(self.jdc.cata[0],etape) - ouChercher=definitionEtape - for k in listeAvant : - ouChercher=ouChercher.entites[k] - MCADetruire=ouChercher.entites[nomDuMC] - ouChercher.ordre_mc.remove(nomDuMC) - del ouChercher.entites[nomDuMC] - del self.dicoNouveauxMC[nomDuMC] - - - #-------------------------------------------------------------# - def ajoutDefinitionMC(self,nomEtape,listeAvant,nomDuMC,typ,**args): - #-------------------------------------------------------------# - definitionEtape=getattr(self.jdc.cata[0],nomEtape) - ouChercher=definitionEtape - for k in listeAvant : - ouChercher=ouChercher.entites[k] - from Accas import A_SIMP - Nouveau=A_SIMP.SIMP(typ,**args) - Nouveau.pere=ouChercher - Nouveau.nom=nomDuMC - #Nouveau.ordre_mc=[] - ouChercher.entites[nomDuMC]=Nouveau - ouChercher.ordre_mc.append(nomDuMC) - self.dicoNouveauxMC[nomDuMC]=('ajoutDefinitionMC',nomEtape,listeAvant,nomDuMC,typ,args) - #print self.dicoNouveauxMC - - #---------------------------------------------------------------------# - def ajoutDefinitionMCFact(self,nomEtape,listeAvant,nomDuMC,listeMC,**args): - #---------------------------------------------------------------------# - print ('ajoutDefinitionMCFact', nomDuMC) - definitionEtape=getattr(self.jdc.cata[0],nomEtape) - ouChercher=definitionEtape - for k in listeAvant : - ouChercher=ouChercher.entites[k] - from Accas import A_SIMP - for mc in listeMC : - nomMC=mc[0] - typMC=mc[1] - argsMC=mc[2] - nouveauMC=A_SIMP.SIMP(typMC,**argsMC) - nouveauMC.nom=nomMC - args[nomMC]=nouveauMC - from Accas import A_FACT - nouveauFact=A_FACT.FACT(**args) - nouveauFact.pere=ouChercher - nouveauFact.nom=nomDuMC - from Editeur.autre_analyse_cata import traite_entite - traite_entite(nouveauFact,[]) - ouChercher.entites[nomDuMC]=nouveauFact - ouChercher.ordre_mc.append(nomDuMC) - self.dicoNouveauxFact[nomDuMC]=('ajoutDefinitionMC',nomEtape,listeAvant,nomDuMC,listeMC,args) - #print self.dicoNouveauxMC - - #----------------------------------------------------# - - #----------------------------------------------------# - def changeIntoMCandSet(self,etape,listeMC,into,valeurs): - #----------------------------------------------------# - - self.changeIntoDefMC(etape,listeMC,into) - - if isinstance (etape, str): - for e in self.jdc.etapes: - if e.nom == etape : etape=e; break - if etape == None : return - - ouChercher = etape - for mot in listeMC[:-1] : - ouChercher=ouChercher.get_child(mot,restreint="oui") - if ouChercher==None : return - MCFils=listeMC[-1] - print (MCFils) - monMC=ouChercher.get_child(MCFils,restreint="oui") - if monMC== None : monMC= etape.addentite(MCFils) - print (monMC) - - monMC.definition.into=into - monMC.valeur=valeurs - monMC.val=valeurs - monMC.state='changed' - monMC.isvalid() - - #-------------------------------------# - def ajoutVersionCataDsJDC(self,txt): - #-------------------------------------# - if not hasattr(self.readercata.cata[0],'VERSION_CATALOGUE'): return txt - ligneVersion="#VERSION_CATALOGUE:"+self.readercata.cata[0].VERSION_CATALOGUE+":FIN VERSION_CATALOGUE\n" - texte=txt+ligneVersion - return texte - - #-------------------------------------# - def verifieVersionCataDuJDC(self,text): - #-------------------------------------# - memeVersion=False - indexDeb=text.find("#VERSION_CATALOGUE:") - indexFin=text.find(":FIN VERSION_CATALOGUE") - if indexDeb < 0 : - self.versionCataDuJDC="sans" - textJDC=text - else : - self.versionCataDuJDC=text[indexDeb+19:indexFin] - textJDC=text[0:indexDeb]+text[indexFin+23:-1] - - self.versionCata="sans" - if hasattr(self.readercata.cata[0],'VERSION_CATALOGUE'): self.versionCata=self.readercata.cata[0].VERSION_CATALOGUE - - if self.versionCata==self.versionCataDuJDC : memeVersion=True - return memeVersion,textJDC - - #-------------------------------# - def traduitCatalogue(self,texte): - #-------------------------------# - nomTraducteur="traduit"+self.readercata.code+self.versionCataDuJDC+"To"+self.versionCata - sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),"../Traducteur"))) - try : - traducteur=__import__(nomTraducteur) - monTraducteur=traducteur.MonTraducteur(texte) - nouveauTexte=monTraducteur.traduit() - return nouveauTexte - except : - return texte - - - #------------------------------# - def verifieCHECKSUM(self,text): - #------------------------------# - indexDeb=text.find("#CHECKSUM:") - if indexDeb < 0 : - return 1, text - indexFin=text.find(":FIN CHECKSUM") - checkAvant=text[indexDeb:indexFin+13] - textJDC=text[0:indexDeb]+text[indexFin+13:-1] - checksum=self.get_checksum(textJDC) - pareil=(checkAvant==checksum) - return pareil, textJDC - - #---------------------------# - def get_checksum(self,texte): - #---------------------------# - newtexte=texte.replace('"','\\"') - commande='echo "'+newtexte+'"|md5sum' - a=os.popen(commande) - checksum=a.read() - a.close() - ligne="#CHECKSUM:"+checksum[0:-1]+":FIN CHECKSUM" - return ligne - - - #---------------------------# - def _new_CF(self): - #---------------------------# - texte="CONDUITE_FORCEE();" - return texte - - - #---------------------------# - def _newTELEMAC(self): - #---------------------------# - #texte="INITIALIZATION();BOUNDARY_CONDITIONS();GENERAL_PARAMETERS();PHYSICAL_PARAMETERS();NUMERICAL_PARAMETERS();" - texte="COMPUTATION_ENVIRONMENT();HYDRO();GENERAL_PARAMETERS();NUMERICAL_PARAMETERS()" - #texte="TRACERS();" - return texte - - #---------------------------# - def _newPSEN(self): - #---------------------------# - texte="DIRECTORY() ; PSSE_PARAMETERS() ; SIMULATION() ; sansnom=DISTRIBUTION() ; sansnom=DISTRIBUTION() ; CORRELATION() ;" - #texte="" - return texte - - #---------------------------# - def _newPSEN_N1(self): - #---------------------------# - texte="CASE_SELECTION();N_PROCESSING_OPTIONS();CONTINGENCY_OPTIONS();CONTINGENCY_SELECTION();\nCONTINGENCY_PROCESSING(); " - texte="CONTINGENCY_SELECTION();\nCONTINGENCY_PROCESSING(); " - return texte - - #---------------------------# - - #---------------------------# - def _newZCRACKS(self): - #---------------------------# - texte="MAILLAGES();REMESHING();" - return texte - - #---------------------------# - def _newJDCCND(self): - #---------------------------# - extensions=tr('Fichiers Med (*.med);;''Tous les Fichiers (*)') - - #if self.salome == 0 : - QMessageBox.information( self, - tr("Fichier Med"), - tr("Veuillez selectionner un fichier Med")) - QSfichier = QFileDialog.getOpenFileName(self.appliEficas, - caption='Fichier Med', - filter=extensions) - QSfichier=QSfichier[0] - self.fichierMED=QSfichier - from acquiertGroupes import getGroupes - erreur,self.listeGroupes,self.nomMaillage,self.dicoCoord=getGroupes(self.fichierMED) - if erreur != "" : print ("a traiter") - texteComm="COMMENTAIRE(u'Cree - fichier : "+self.fichierMED +" - Nom Maillage : "+self.nomMaillage+"');\nPARAMETRES()\n" - texteSources="" - texteCond="" - texteNoCond="" - texteVcut="" - texteZs="" - for groupe in self.listeGroupes : - if groupe[0:8]=='CURRENT_': - texteSources +=groupe[8:]+"=SOURCE(" - texteSources +="VecteurDirecteur=(1.0,2.0,3.0,),);\n" - if groupe[0:5]=='COND_': texteCond +=groupe[5:]+"=CONDUCTEUR();\n" - if groupe[0:7]=='NOCOND_': texteNoCond +=groupe[7:]+"=NOCOND();\n" - if groupe[0:5]=='VCUT_': texteVcut +='V_'+groupe[5:]+"=VCUT();\n" - if groupe[0:3]=='ZS_': texteZs +=groupe[3:]+"=ZS();\n" - texte=texteComm+texteSources+texteCond+texteNoCond+texteVcut+texteZs - self.newTexteCND=texte - self.modified=1 - return texte - - - #---------------------------# - def BoutonFileSelected(self): - #---------------------------# - - QSfichier=self.openfile.selectedFiles()[0] - self.fichierMED=str(QSfichier) - from acquiertGroupes import getGroupes - erreur,self.listeGroupes,self.nomMaillage=getGroupes(self.fichierMED) - if erreur != "" : print ("a traiter") - - #----------------------------- - def BoutonSalomePressed(self): - #---------------------------- - Msg,self.listeGroupes=self.appliEficas.ChercheGrpMailleInSalome() - self.fichierMED="A_partir_de_SMESH" - self.nomMaillage="A_partir_de_SMESH" - self.openfile.close() - - - #----------------------------------------- - def initSplitterSizes(self, nbWidget=3): - #----------------------------------------- - #print ("je passe ds initSplitterSizes", nbWidget) - - if self.code in [ 'Adao', 'ADAO', ] : self.splitterSizes3=[1,1550,150] - elif self.code in [ 'MAP'] : self.splitterSizes3=[700,300] - else : self.splitterSizes3=[150,1000,300] - - if self.code in [ 'Adao', 'ADAO', ] : self.splitterSizes2=[5,1500] - else : self.splitterSizes2=[300,1000] - - - - #----------------------------------------- - def restoreSplitterSizes(self,nbWidget=3): - #---------------------------------------- - - #traceback.print_stack() - #print ("je passe ds restoreSplitterSizes") - if not(hasattr(self,'splitter')) : return - if nbWidget==2 : newSizes=self.splitterSizes2 - if nbWidget==3 : newSizes=self.splitterSizes3 - #self.inhibeSplitter = 1 - self.splitter.setSizes(newSizes) - #self.inhibeSplitter = 0 - QApplication.processEvents() - # seule la fentetre du milieu est necessaire - self.splitter.widget(1).resizeEvent=self.saveSplitterSizes - - #----------------------------------------- - def saveSplitterSizes(self,event): - #----------------------------------------- - #print ("je passe ds saveSplitterSizes") - if self.inhibeSplitter : return - if self.widgetOptionnel == None : self.splitterSizes2 = self.splitter.sizes()[0:2] - else : self.splitterSizes3 = self.splitter.sizes()[0:3] - - #------------------------ - def fermeOptionnel(self): - #------------------------ - if self.widgetOptionnel == None : return - - self.inhibeSplitter=1 - self.widgetOptionnel.setParent(None) - self.widgetOptionnel.close() - self.widgetOptionnel.deleteLater() - self.widgetOptionnel=None - self.inhibeSplitter=0 - self.restoreSplitterSizes(2) - - #------------------------ - def ajoutOptionnel(self): - #------------------------ - #if len(self.splitterSizes) == 2 : self.splitterSizes.append(self.oldSizeWidgetOptionnel) - #else : self.splitterSizes[2] = self.oldSizeWidgetOptionnel # ceinture pour les close bizarres - #self.splitterSizes[1] = self.splitterSizes[1] - self.splitterSizes[2] - - self.restoreSplitterSizes(3) - - - #------------------------ - def fermeArbre(self): - #------------------------ - #print (self.widgetTree) - self.oldWidgetTree=self.widgetTree - self.widgetTree.hide() - #self.widgetTree=None - - #------------------------ - def ouvreArbre(self): - #------------------------ - #print ('je passe la') - #print (self.widgetTree) - #self.widgetTree=self.oldWidgetTree - self.widgetTree.show() - #self.restoreSplitterSizes(3) - - #----------------------------- - def getTreeIndex(self,noeud): - #---------------------------- - indexNoeud=-1 - if noeud in noeud.treeParent.children : - indexNoeud=noeud.treeParent.children.index(noeud) - else : - if hasattr(noeud,'vraiParent') : - noeudVrai = noeud - noeudVraiParent = noeud.vraiParent - while noeudVraiParent != noeud.treeParent and hasattr(noeudVraiParent,'vraiParent') : - noeudVrai = noeudVraiParent - noeudVraiParent = noeudVraiParent.vraiParent - pass - if noeudVraiParent == noeud.treeParent : - indexNoeud=noeud.treeParent.children.index(noeudVrai) - pass - pass - pass - return indexNoeud - -if __name__ == "__main__": - self.code='ASTER' - name='prefs_'+prefs.code - prefsCode=__import__(name) - - - if hasattr(prefsCode,'encoding'): - # Hack pour changer le codage par defaut des strings - import sys - reload(sys) - sys.setdefaultencoding(prefs.encoding) - del sys.setdefaultencoding - # Fin hack - -# code=options.code -# - app = QApplication(sys.argv) - mw = JDCEditor(None,'azAster.comm') - app.setMainWidget(mw) - app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()")) - mw.show() - - res = app.exec_loop() - sys.exit(res) diff --git a/boundary_conditions/CMakeLists.txt b/boundary_conditions/CMakeLists.txt deleted file mode 100644 index 9d5d3202..00000000 --- a/boundary_conditions/CMakeLists.txt +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (C) 2012-2013 EDF -# -# This file is part of SALOME HYDRO module. -# -# SALOME HYDRO module is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# SALOME HYDRO module is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with SALOME HYDRO module. If not, see . - -# --- Python files --- - -SET(PYFILES - __init__.py - configuration_boundary_conditions.py - prefs_boundary_conditions.py - prefs.py - boundary_conditions_cata.py - appli.py - generator_boundary_conditions.py -) - -# --- rules --- - -SALOME_INSTALL_SCRIPTS("${PYFILES}" ${SALOME_INSTALL_PYTHON}/salome/hydro/boundary_conditions/eficas) diff --git a/mascaret/CMakeLists.txt b/mascaret/CMakeLists.txt deleted file mode 100644 index deb3c655..00000000 --- a/mascaret/CMakeLists.txt +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (C) 2012-2013 EDF -# -# This file is part of SALOME HYDRO module. -# -# SALOME HYDRO module is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# SALOME HYDRO module is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with SALOME HYDRO module. If not, see . - -# --- Python files --- - -SET(PYFILES - __init__.py - appli.py - configuration_mascaret.py - prefs_mascaret.py - prefs.py - mascaret_V7_cata.py -) - -# --- rules --- - -SALOME_INSTALL_SCRIPTS("${PYFILES}" ${SALOME_INSTALL_PYTHON}/salome/hydro/mascaret/eficas)