Fix issue 152: Segfault happens if linear form is supplied instead of goal functional for adaptive solve
Merge branch 'logg/fix-issue-152'