- Thank you received: 24
Issue with Projector
5 years 2 months ago #1879
by hvwahl
Issue with Projector was created by hvwahl
Hi everyone,
the projector object is behaving unexpectedly: It's zeroing out everything. I've attached a MWE to illustrate this. Is this a bug or has the usage of the projector object changed?
Best wishes,
Henry
the projector object is behaving unexpectedly: It's zeroing out everything. I've attached a MWE to illustrate this. Is this a bug or has the usage of the projector object changed?
Best wishes,
Henry
Attachments:
- mneunteufel
- Offline
- Premium Member
Less
More
- Thank you received: 59
5 years 2 months ago #1880
by mneunteufel
Replied by mneunteufel on topic Issue with Projector
Hi Henry,
using
leads to undefined behavior as the gfu object appears on the left and right side.
Replacing the line with
should solve the problem.
Best,
Michael
using
Code:
gfu.vec.data = projector*gfu.vec
Replacing the line with
Code:
tmp = gfu.vec.CreateVector()
tmp.data = projector*gfu.vec
gfu.vec.data = tmp
Best,
Michael
5 years 2 months ago #1881
by hvwahl
Replied by hvwahl on topic Issue with Projector
Hi Michael,
thank you for the quick reply! Thats solved the issue .
Best wishes,
Henry
thank you for the quick reply! Thats solved the issue .
Best wishes,
Henry
5 years 2 months ago #1882
by joachim
Replied by joachim on topic Issue with Projector
you can apply the projector inplace via
Joachim
Code:
projector.Project(gfu.vec)
Joachim
Time to create page: 0.101 seconds