problem with Variational Problem constructor
I had my program running, but I had to update to the new release of dolfin to fix a problem I had with dolfin::Functions. Therefore, this problem is a direct result of using the new version. I was using 0.9.4 which I had cloned around the beging of August prior to this.
This is my error msg:
CSolver.h:200: error: no matching function for call to ‘dolfin:
/home/claude/
/home/claude/
/home/claude/
/home/claude/
/home/claude/
As far as I can see, the only differences between the one I'm using, and the one I want to use are the const
Before updating my version I was using it like so:
dolfin:
and it was compiling and running. Since updating I have changed to:
dolfin:
CSD and zero are both MeshFunctions declared like so:
dim = cathode-
const dolfin:
const dolfin:
I have made both of them const. since updating in a effort to get it to compile. I have a feeling I'm missing something really simple, but I can't seem to figure it out. Any help would be appreciated.
Thank you very much
Phil
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Andy R Terrel
- Solved:
- 2009-12-16
- Last query:
- 2009-12-16
- Last reply:
- 2009-12-15
|
#1 |
In 0.9.5 boundary condition vectors need to be const. So declare bcs as
std::vector< const BoundaryCondition* > bcs;
Also you shouldn't need the zero in the form since 0 will be cast to a const anyways.
Hope this helps.
Phil Marinier (lonewolf-13p) said : | #2 |
Thanks Andy R Terrel, that solved my question.
Phil Marinier (lonewolf-13p) said : | #3 |
Thanks, it works now. Appreciate the help.
Phil