NeoPZ
iorele.cpp
Go to the documentation of this file.
1 #include "sloan.h"
2 
3 /* Subroutine */
4 int iorele_ (int64_t *ior, int64_t *nnn, int64_t *npn, int64_t *xnpn, int64_t *key, int64_t *, int64_t *nel, int64_t *)
5  // ior,nnn,npn,xnpn,key,numno,nel,nop
6 {
7  /* System generated locals */
8  int64_t i__1, i__2;
9  /* Local variables */
10  static int64_t mini, i, j, noeud;
11 
12  /* Parameter adjustments */
13  --npn;
14  --nnn;
15  --key;
16  --xnpn;
17  --ior;
18 
19  /* Function Body */
20  i__1 = *nel;
21  for (i = 1; i <= i__1; ++i)
22  {
23  mini = 9999999;
24  i__2 = xnpn[i + 1] - 1;
25  for (j = xnpn[i]; j <= i__2; ++j)
26  {
27  noeud = nnn[npn[j]];
28  mini = (mini < noeud) ? mini : noeud;
29 /* L2: */
30  }
31  key[i] = mini;
32 /* L1: */
33  }
34 
35  vsrtp1_ (&key[1], &ior[1], nel);
36 
37  return 0;
38 } /* iorele_ */
int vsrtp1_(int64_t *, int64_t *, int64_t *)
Definition: vsrtp1.cpp:4
int iorele_(int64_t *ior, int64_t *nnn, int64_t *npn, int64_t *xnpn, int64_t *key, int64_t *, int64_t *nel, int64_t *)
Definition: iorele.cpp:4