-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply the modifications of https://github.com/libprima/prima/pull/135 to Aeq
, beq
, Aineq
, and bineq
?
#146
Comments
Aeq
, beq
, Aineq
, and bineq
? Aeq
, beq
, Aineq
, and bineq
?
BTW, does the following initialization set all integers in memset(options, 0, sizeof(prima_options_t)); |
A couple comments:
I think maybe it's not necessary because we rely on
Yes it sets all integers to 0 and all pointers to NULL and yes this is guaranteed. |
PRIMA aims to be compatible with F2008 and above. This means that the code compiles without any warning using any compiler with When referring to the Fortran standard for some feature, I always use the latest standard (F2023 as of today). If the standards are inconsistent about this feature, then PRIMA should not use it at all (I do not this has ever happened, as Fortran is super conservative about backward compatibility). Since the standards are consistent, referring to the latest one is better. |
This is a feature of modern Fortran that I avoid using. Another related one is automatic (re)allocation. I believe explicit allocation and deallocation are better, exactly due to the explicitness. In addition, explicit deallocation enables us to free the memory as soon as possible, which is beneficial if the memory under discussion is huge. Thanks. |
Fixed: 1bdb6ea
I thought about it before. Currently, I have no plan for this. |
I believe you misunderstood my comment. I was making two points
|
…#146 (comment) and revise the wording
Hi @nbelakovski ,
I have gone through #135 and made some revisions to the algorithm_c.f90 files:
9880e58
It is mainly to
Do they seem OK to you?
In addition, I have got a question: Should we apply the modifications of PR 135 to
Aeq
,beq
,Aineq
, andbineq
? Seeprima/c/lincoa_c.f90
Lines 92 to 95 in 439019f
prima/c/cobyla_c.f90
Lines 100 to 103 in 439019f
The text was updated successfully, but these errors were encountered: