From: michael Date: Fri, 5 Nov 2021 22:20:03 +0000 (+0100) Subject: Updated syntax X-Git-Tag: V9_8_0~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=67e46576f353391c7a07054683507c7f2f3ac9f9;p=tools%2Fsolverlab.git Updated syntax --- diff --git a/CoreFlows/examples/Python/DiffusionEquation/DiffusionEquation_1DHeatedRod_FE.py b/CoreFlows/examples/Python/DiffusionEquation/DiffusionEquation_1DHeatedRod_FE.py index 8276a76..920869d 100755 --- a/CoreFlows/examples/Python/DiffusionEquation/DiffusionEquation_1DHeatedRod_FE.py +++ b/CoreFlows/examples/Python/DiffusionEquation/DiffusionEquation_1DHeatedRod_FE.py @@ -2,6 +2,7 @@ # -*-coding:utf-8 -* import CoreFlows as cf +import cdmath as cm def DiffusionEquation_1DHeatedRod(): spaceDim = 1; @@ -35,7 +36,8 @@ def DiffusionEquation_1DHeatedRod(): #Initial field creation print("Building initial data" ); - myProblem.setInitialFieldConstant(spaceDim,VV_Constant,xinf,xsup,nx,"Neumann","Neumann"); + #Syntax should be simplified when problem of enum swig is solved + myProblem.setInitialFieldConstant(spaceDim,VV_Constant,xinf,xsup,nx,"Neumann","Neumann",0.,0.,0,"","",0.,0.,0,"","",cm.NODES); # the boundary conditions myProblem.setNeumannBoundaryCondition("Neumann");