Error: Invalid value rank for coefficient 1
I hope this isn't a stupid question, but I have get this error message and I have no idea what it means.
Solving linear variational problem
Matrix of size 1251 x 1251 has 8551 nonzero entries.
terminate called after throwing an instance of 'std::runtime_
what(): *** Error: Invalid value rank for coefficient 1, got 1 but expecting 0. Did you forget to specify the value rank correctly in an Expression sub class?
[wolf:00486] *** Process received signal ***
[wolf:00486] Signal: Aborted (6)
[wolf:00486] Signal code: (-6)
[wolf:00486] [ 0] [0xe99410]
[wolf:00486] [ 1] [0xe99422]
[wolf:00486] [ 2] /lib/tls/
[wolf:00486] [ 3] /lib/tls/
[wolf:00486] [ 4] /usr/lib/
[wolf:00486] [ 5] /usr/lib/
[wolf:00486] [ 6] /usr/lib/
[wolf:00486] [ 7] /usr/lib/
[wolf:00486] [ 8] /home/claude/
[wolf:00486] [ 9] /home/claude/
[wolf:00486] [10] /home/claude/
[wolf:00486] [11] /home/claude/
[wolf:00486] [12] /home/claude/
[wolf:00486] [13] /home/claude/
[wolf:00486] [14] /home/claude/
[wolf:00486] [15] ./forward(
[wolf:00486] [16] ./forward(
[wolf:00486] [17] ./forward(
[wolf:00486] [18] /lib/tls/
[wolf:00486] [19] ./forward [0x806e931]
[wolf:00486] *** End of error message ***
Aborted
I'm not using any sub classes of Expression. I am using dolfin::Function but as far as I know, I don't have to specify the value rank when using Function. What does this error message mean? I am using MeshFunction but I double checked the new programmers reference and I'm declaring it the right way, and it doesn't seem to need a value rank. What should I be looking for when I debug?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anders Logg
- Solved:
- Last query:
- Last reply: