Author: bugman
Date: Tue Aug 26 16:56:24 2014
New Revision: 25294
URL: http://svn.gna.org/viewcvs/relax?rev=25294&view=rev
Log:
Changed the array declarations in the target_functions/exponential C file and
header.
Instead of using the pointer format of *xyz, the array format of xyz[] is now
being used. These are
equivalent and the later is more obvious that this is an array.
Modified:
trunk/target_functions/exponential.c
trunk/target_functions/exponential.h
Modified: trunk/target_functions/exponential.c
URL:
http://svn.gna.org/viewcvs/relax/trunk/target_functions/exponential.c?rev=25294&r1=25293&r2=25294&view=diff
==============================================================================
--- trunk/target_functions/exponential.c (original)
+++ trunk/target_functions/exponential.c Tue Aug 26 16:56:24 2014
@@ -25,7 +25,7 @@
#include "exponential.h"
-void exponential(double I0, double R, double *relax_times, double *back_calc,
int num_times) {
+void exponential(double I0, double R, double relax_times[], double
back_calc[], int num_times) {
/* Function to back calculate the intensity values from an exponential.
*
* The function used is::
@@ -49,7 +49,7 @@
}
}
-void exponential_dI0(double I0, double R, int param_index, double
*relax_times, double back_calc_grad[][MAXTIMES], int num_times) {
+void exponential_dI0(double I0, double R, int param_index, double
relax_times[], double back_calc_grad[][MAXTIMES], int num_times) {
/* Calculate the dI0 partial derivate of the 2-parameter exponential curve.
*/
@@ -69,7 +69,7 @@
}
-void exponential_dR(double I0, double R, int param_index, double *relax_times,
double back_calc_grad[][MAXTIMES], int num_times) {
+void exponential_dR(double I0, double R, int param_index, double
relax_times[], double back_calc_grad[][MAXTIMES], int num_times) {
/* Calculate the dR partial derivate of the 2-parameter exponential curve.
*/
Modified: trunk/target_functions/exponential.h
URL:
http://svn.gna.org/viewcvs/relax/trunk/target_functions/exponential.h?rev=25294&r1=25293&r2=25294&view=diff
==============================================================================
--- trunk/target_functions/exponential.h (original)
+++ trunk/target_functions/exponential.h Tue Aug 26 16:56:24 2014
@@ -25,8 +25,8 @@
#define MAXTIMES 50
-void exponential(double I0, double R, double *relax_times, double *back_calc,
int num_times);
-void exponential_dI0(double I0, double R, int param_index, double
*relax_times, double back_calc_grad[][MAXTIMES], int num_times);
-void exponential_dR(double I0, double R, int param_index, double *relax_times,
double back_calc_grad[][MAXTIMES], int num_times);
+void exponential(double I0, double R, double relax_times[], double
back_calc[], int num_times);
+void exponential_dI0(double I0, double R, int param_index, double
relax_times[], double back_calc_grad[][MAXTIMES], int num_times);
+void exponential_dR(double I0, double R, int param_index, double
relax_times[], double back_calc_grad[][MAXTIMES], int num_times);
#endif
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits