Refactor prima_is_success to accept options.ctol#200
Refactor prima_is_success to accept options.ctol#200zaikunzhang merged 3 commits intolibprima:mainfrom
Conversation
This is in reference to libprima#195
|
Hi @nbelakovski , I agree with what you said. I think the solution you propose is fine given the current situation. However, I am considering another possibility: let the Fortran backend return This also motivates a single gateway What do you think? We can merge the current solution first, but I hope to hear your opinions. Thanks. Zaikun |
|
Hi @nbelakovski , Do we really need to expose A similar question was asked about Thanks. |
… already contains the message
I don't think we need to expose either of these in the public API, and I've made the appropriate changes.
Of course I think that defining |
This is in reference to #195
I made it so that ctol is initialized to the default value that was being used. Another option is to check if options.ctol is NaN within
prima_is_success, but I know we've discussed before thatisnancan have issues with certain optimization levels.I'll think about it some more, but I'm not sure what other options there are. With either option above we need to maintain a default value within
prima.cwhich is not ideal since that implies two places where default values are stored (prima.candconsts.f90). Would it make sense to have aconstsfolder at the root of the repo, which then contains folders likefortran,c,python, each of which defines const values for each of the languages, so that there's one place where these values are maintained?