Skip to content

Commit

Permalink
Update TY_YukawaSq.c
Browse files Browse the repository at this point in the history
Not sure if the previous change break some part of the codes. The code could not return the correct results. Remove the added code to see if it works.
  • Loading branch information
yunliu01 authored Feb 5, 2024
1 parent 56dd884 commit 5d5dc49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sasmodels/models/TY_YukawaSq.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ void translate(
//Added by Yun Liu on 02/05/2024
//When some numbers, such as d1 and d2, are very large number, the correct solution may not pass the checking function.
//It is recommended to comment out this line of code and simply assume that the TY_SolveEquation function returns a correct result.
//int checkFlags = TY_CheckSolution( *z1, *z2, *k1, *k2, *volumefraction, *a, *b, *c1, *c2, *d1, *d2 );
int checkFlags = 1;
int checkFlags = TY_CheckSolution( *z1, *z2, *k1, *k2, *volumefraction, *a, *b, *c1, *c2, *d1, *d2 );
//int checkFlags = 1;

if (checkFlags != 0) {
*a = NAN;
Expand Down

0 comments on commit 5d5dc49

Please sign in to comment.