I want to post-process the gfu and curl them.
The type of A will be <class ‘ngsolve.fem.CoefficientFunction’> when after I do post-process.
Please tell me what to do. Thank you.
gfu = GridFunction(fes)
with TaskManager():
solvers.CG(sol=gfu.vec, rhs=f.vec, mat=a.mat, pre=c.mat, printrates='\r', tol=1e-8, maxsteps=1000)
A = GridFunction(fes)
print(type(A))
A = 5*gfu
print(type(A))
B = curl(A)
<class ‘ngsolve.comp.GridFunction’>
<class ‘ngsolve.fem.CoefficientFunction’>
AttributeError: ‘ngsolve.fem.CoefficientFunction’ object has no attribute ‘derivname’