On Tue, Sep 15, 2015 at 9:28 AM, Roy Stogner <[email protected]>
wrote:

>
> On Tue, 15 Sep 2015, John Peterson wrote:
>
> We should probably try to prevent this type of configuration from getting
>> run by throwing an error if the Eigen sparse solvers are invoked when
>> n_processors() > 1.
>>
>> @roystgnr any preferences for how to do this?
>>
>
> Perhaps this particular error is bad enough to be worth screaming
> about in opt mode?  Maybe even adding the libmesh_opt_assert()
> macro(s) I wanted once upon a time, to get us in the habit of adding
> such asserts when they're valuable and cheap?  The vector constructors
> are (pretty much by definition) not called in innermost loops, and if
> even that's too bad we could put the opt-assertion in the solver
> constructors and it won't even be in any outer loops.
>

Are opt_asserts turned off in debug mode? ;-)

Constructors sounds like a reasonable place for this.  I'll make a PR.

-- 
John
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to