From a9eb49d6c67fd13527b772892fd92720f908432a Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 15 Mar 2006 07:24:16 +0000 Subject: [PATCH] Fix compilation errors --- src/AddComponent/Makefile.in | 2 +- src/AdditionComponent/Makefile.in | 2 +- src/CalculatorComponent/CalculatorEngine.cxx | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/AddComponent/Makefile.in b/src/AddComponent/Makefile.in index 1774786..25eca5b 100755 --- a/src/AddComponent/Makefile.in +++ b/src/AddComponent/Makefile.in @@ -57,7 +57,7 @@ CPPFLAGS+= $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome LDFLAGS+= -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lSalomeNS -lOpUtil -lRegistry -lSalomeNotification -lSALOMELocalTrace -lSalomeNS -lSalomeLifeCycleCORBA LIBSFORBIN= $(LIBS) -LDFLAGSFORBIN+= -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lSalomeNS -lOpUtil -lRegistry -lSalomeNotification -lSALOMELocalTrace +LDFLAGSFORBIN+= -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lSalomeNS -lOpUtil -lRegistry -lSalomeNotification -lSALOMELocalTrace -lSalomeNS -lSalomeLifeCycleCORBA @CONCLUDE@ diff --git a/src/AdditionComponent/Makefile.in b/src/AdditionComponent/Makefile.in index c2ae83e..202a52e 100755 --- a/src/AdditionComponent/Makefile.in +++ b/src/AdditionComponent/Makefile.in @@ -58,7 +58,7 @@ CPPFLAGS+= $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome LDFLAGS+= -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lSalomeNS -lOpUtil -lRegistry -lSalomeNotification -lSALOMELocalTrace -lSalomeNS -lSalomeLifeCycleCORBA LIBSFORBIN= $(LIBS) -LDFLAGSFORBIN+= -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lSalomeNS -lOpUtil -lRegistry -lSalomeNotification -lSALOMELocalTrace +LDFLAGSFORBIN+= -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lSalomeNS -lOpUtil -lRegistry -lSalomeNotification -lSALOMELocalTrace -lSalomeNS -lSalomeLifeCycleCORBA @CONCLUDE@ diff --git a/src/CalculatorComponent/CalculatorEngine.cxx b/src/CalculatorComponent/CalculatorEngine.cxx index 7c8e792..69cb4c3 100644 --- a/src/CalculatorComponent/CalculatorEngine.cxx +++ b/src/CalculatorComponent/CalculatorEngine.cxx @@ -633,18 +633,20 @@ void CalculatorEngine::writeMEDfile(SALOME_MED::FIELDDOUBLE_ptr field, const cha for ( int i = 0; i < NumberOfType; i++ ) { int NumberOfElements = mySupport->getNumberOfElements ( (*Types)[i] ) ; - int NumberOfGaussPoint = mySupport->getNumberOfGaussPoint ( (*Types)[i] ) ; - + //Temporarily commented to avoid compilation errors:int NumberOfGaussPoint = mySupport->getNumberOfGaussPoint ( (*Types)[i] ) ; + int NumberOfGaussPoint = 1; //Temporary line instead of the above one + MESSAGE( " " << field->getName() ); MESSAGE( " " << NumberOfElements ); - MESSAGE( " " << NumberOfGaussPoint ); + //!!!tmp commented:MESSAGE( " " << NumberOfGaussPoint ); + MESSAGE( "Attention! NumberOfGaussPoint is invalid: " << NumberOfGaussPoint ); //tmp line!!! MESSAGE( " " << (int) (convertIdlEntToMedEnt(mySupport->getEntity())) ); MESSAGE( " " << (int)(convertIdlEltToMedElt((*Types)[i])) ); MESSAGE( " " << field->getIterationNumber() ); MESSAGE( " " << field->getTime() ); MESSAGE( " " << field->getOrderNumber() ); MESSAGE( "MEDchampEcr :" << myMesh->getName() ); - + SALOME_MED::double_array * value = field->getValue( SALOME_MED::MED_FULL_INTERLACE ) ; double *locvalue = new double[NumberOfElements]; for (int k = 0; k < NumberOfElements; k++) -- 2.39.2