Hi,
one more question please, related to the above marking (i attach again the related .py file after adding two lines), and trying to apply the SymbolicBFI onto specific elements using the commands:
#lset_IF = { "levelset" : lsetp1, "domain_type" : IF, "subdivlvl" : 0} #it works
#a += SymbolicBFI(lset_IF,form = u*v) #it works
lset_test = { "levelset" : lsetp1, "domain_type" : test, "subdivlvl" : 0} #It does not give any error
print("type(lset_test)=",type(lset_test),"\n") # <class 'dict'>
a += SymbolicBFI(lset_test,form = u*v)
even if lset_test and lset_IF both are the same <class ‘dict’> type I see the error
[i] [color=purple]File “”, line 65, in
File “/install/ngsolve/2017-11-16-ef89d2d0/petsc-2017-09-30-c91a011401-3.8/lib/python3.6/site-packages/xfem/init.py”, line 169, in SymbolicBFI *args, **kwargs)
TypeError: SymbolicCutBFI(): incompatible function arguments. The following argument types are supported:
1. (lset: ngsolve.fem.CoefficientFunction, domain_type: xfem.ngsxfem_py.DOMAIN_TYPE=DOMAIN_TYPE.NEG, force_intorder: int=-1, subdivlvl: int=0, form: ngsolve.fem.CoefficientFunction, VOL_or_BND: ngsolve.comp.VorB=VorB.VOL, element_boundary: bool=False, skeleton: bool=False, definedon: object=<ngsolve.ngstd.DummyArgument>, definedonelements: object=<ngsolve.ngstd.DummyArgument>) → ngsolve.fem.BFI
Invoked with: kwargs: lset=<ngsolve.comp.GridFunction object at 0x7f3a48b0e7d8>, domain_type=<ngsolve.ngstd.BitArray object at 0x7f3a48b14c38>, force_intorder=-1, subdivlvl=0, form=<ngsolve.fem.CoefficientFunction object at 0x7f3a48b14e68>[/color][/i]
do I have to use somehow the CoefficientFunction as it is mentioned in the error message? And how can I avoid the SymbolicCutBFI() mentioned in the error message (I don’t want to use any cut element integration), thank you,
best regards
Makis
Attachment: 3-NEG_mesh_bc_2017-11-13-4_2017-11-17.py