dealii: add msg= to conflicts statements#8509
Conversation
jppelteret
left a comment
There was a problem hiding this comment.
Thank you for taking the time to rewrite the conflicts and add the error messages!
| 'adol-c']: | ||
| conflicts('+{0}'.format(p), when='@:8.5.1', | ||
| msg='Interface to {0} is supported starting from 9.0.0' | ||
| ', please explicitly disable this variant ' |
There was a problem hiding this comment.
Maybe to have a more complete statement, we could change this to
The interface to {0} is supported from version 9.0.0 onwards. Please explicitly disable this variant.
There was a problem hiding this comment.
Whoops. I see why this should not get a "." at the end of the second statement. So ignore that part of the suggestion.
| 'via ~{0}'.format(p)) | ||
|
|
||
| conflicts('+slepc', when='~petsc', | ||
| msg='It is not possible ot enable slepc interfaces ' |
| for p in ['gsl', 'python']: | ||
| conflicts('+{0}'.format(p), when='@:8.4.2', | ||
| msg='Interface to {0} is supported starting from 8.5.0' | ||
| ', please explicitly disable this variant ' |
There was a problem hiding this comment.
Can we please change this along the lines of my first suggestion?
| for p in ['arpack', 'hdf5', 'netcdf', 'p4est', 'petsc', 'scalapack', | ||
| 'slepc', 'trilinos']: | ||
| conflicts('+{0}'.format(p), when='~mpi', | ||
| msg='Can not enable {0} without MPI'.format(p)) |
There was a problem hiding this comment.
Maybe something more directive would be suitable?
To enable {0} it is necessary to build deal.II with MPI support enabled.
|
@jppelteret I improved the wording following your suggestions. Please have a look. |
|
Thanks @davydden. Looks great! |
@jppelteret this is as much as we can do now to help users. Let me know if you prefer to reword anything. Although it's not a fix to the issue, I marking it as such as right now we can't do more.
fixes #8504
@christianbaensch would the following error be more helpful (see the bottom of this message, which is more descriptive now) :