whitespace fixes
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
/* fortran/dlamrg.f -- translated by f2c (version 20200916).
|
||||
You must link the resulting object file with libf2c:
|
||||
on Microsoft Windows system, link with libf2c.lib;
|
||||
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
|
||||
or, if you install libf2c.a in a standard place, with -lf2c -lm
|
||||
-- in that order, at the end of the command line, as in
|
||||
cc *.o -lf2c -lm
|
||||
Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
|
||||
on Microsoft Windows system, link with libf2c.lib;
|
||||
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
|
||||
or, if you install libf2c.a in a standard place, with -lf2c -lm
|
||||
-- in that order, at the end of the command line, as in
|
||||
cc *.o -lf2c -lm
|
||||
Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
|
||||
|
||||
http://www.netlib.org/f2c/libf2c.zip
|
||||
http://www.netlib.org/f2c/libf2c.zip
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -15,7 +15,7 @@ extern "C" {
|
||||
#endif
|
||||
#include "lmp_f2c.h"
|
||||
|
||||
/* > \brief \b DLAMRG creates a permutation list to merge the entries of two independently sorted sets into a
|
||||
/* > \brief \b DLAMRG creates a permutation list to merge the entries of two independently sorted sets into a
|
||||
single set sorted in ascending order. */
|
||||
|
||||
/* =========== DOCUMENTATION =========== */
|
||||
@ -116,8 +116,8 @@ f"> */
|
||||
/* > \ingroup auxOTHERcomputational */
|
||||
|
||||
/* ===================================================================== */
|
||||
/* Subroutine */ int dlamrg_(integer *n1, integer *n2, doublereal *a, integer
|
||||
*dtrd1, integer *dtrd2, integer *index)
|
||||
/* Subroutine */ int dlamrg_(integer *n1, integer *n2, doublereal *a, integer
|
||||
*dtrd1, integer *dtrd2, integer *index)
|
||||
{
|
||||
/* System generated locals */
|
||||
integer i__1;
|
||||
@ -149,50 +149,50 @@ f"> */
|
||||
n1sv = *n1;
|
||||
n2sv = *n2;
|
||||
if (*dtrd1 > 0) {
|
||||
ind1 = 1;
|
||||
ind1 = 1;
|
||||
} else {
|
||||
ind1 = *n1;
|
||||
ind1 = *n1;
|
||||
}
|
||||
if (*dtrd2 > 0) {
|
||||
ind2 = *n1 + 1;
|
||||
ind2 = *n1 + 1;
|
||||
} else {
|
||||
ind2 = *n1 + *n2;
|
||||
ind2 = *n1 + *n2;
|
||||
}
|
||||
i__ = 1;
|
||||
/* while ( (N1SV > 0) & (N2SV > 0) ) */
|
||||
L10:
|
||||
if (n1sv > 0 && n2sv > 0) {
|
||||
if (a[ind1] <= a[ind2]) {
|
||||
index[i__] = ind1;
|
||||
++i__;
|
||||
ind1 += *dtrd1;
|
||||
--n1sv;
|
||||
} else {
|
||||
index[i__] = ind2;
|
||||
++i__;
|
||||
ind2 += *dtrd2;
|
||||
--n2sv;
|
||||
}
|
||||
goto L10;
|
||||
if (a[ind1] <= a[ind2]) {
|
||||
index[i__] = ind1;
|
||||
++i__;
|
||||
ind1 += *dtrd1;
|
||||
--n1sv;
|
||||
} else {
|
||||
index[i__] = ind2;
|
||||
++i__;
|
||||
ind2 += *dtrd2;
|
||||
--n2sv;
|
||||
}
|
||||
goto L10;
|
||||
}
|
||||
/* end while */
|
||||
if (n1sv == 0) {
|
||||
i__1 = n2sv;
|
||||
for (n1sv = 1; n1sv <= i__1; ++n1sv) {
|
||||
index[i__] = ind2;
|
||||
++i__;
|
||||
ind2 += *dtrd2;
|
||||
i__1 = n2sv;
|
||||
for (n1sv = 1; n1sv <= i__1; ++n1sv) {
|
||||
index[i__] = ind2;
|
||||
++i__;
|
||||
ind2 += *dtrd2;
|
||||
/* L20: */
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* N2SV .EQ. 0 */
|
||||
i__1 = n1sv;
|
||||
for (n2sv = 1; n2sv <= i__1; ++n2sv) {
|
||||
index[i__] = ind1;
|
||||
++i__;
|
||||
ind1 += *dtrd1;
|
||||
i__1 = n1sv;
|
||||
for (n2sv = 1; n2sv <= i__1; ++n2sv) {
|
||||
index[i__] = ind1;
|
||||
++i__;
|
||||
ind1 += *dtrd1;
|
||||
/* L30: */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -202,5 +202,5 @@ L10:
|
||||
} /* dlamrg_ */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user