Skip to content

Commit

Permalink
TA16: assign explicit return value in TA2016_SetGrid
Browse files Browse the repository at this point in the history
TA2016_SetGrid should return int, but only has returns for some control flows. This sets a return value at the end of the function for better code and fewer compiler complaints..
  • Loading branch information
drsteve committed May 17, 2024
1 parent 08f581a commit 77110ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libLanlGeoMag/TA16.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ int TA2016_SetGrid(LgmTA16_Info *Info) {
R = R*(Nlat-0.5+M_PI/4.0)/(Nlat-0.5-M_PI/4.0); // Increment R by a fixed factor
if (R > RHighGrid) break; // RBF centers only inside R=RHIGH
} // End loop over J
Info->SetupDone = TRUE ;
Info->SetupDone = TRUE ;
return(1);
}


Expand Down

0 comments on commit 77110ac

Please sign in to comment.