Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96790533
classer.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Dec 30, 21:24
Size
1 KB
Mime Type
text/x-c
Expires
Wed, Jan 1, 21:24 (2 d)
Engine
blob
Format
Raw Data
Handle
23214226
Attached To
R1448 Lenstool-HPC
classer.c
View Options
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: classer */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
void classer(struct galaxie image[NFMAX][NIMAX],
struct galaxie *cimage, long int *ni, long int *ncistart )
{
const extern struct g_source S;
const extern struct g_large L;
int i, j, k;
char ngiant[NFMAX][IDSIZE];
k = 0;
for ( i = 0 ; i < S.ns ; i++ )
for ( j = 0 ; j < NIMAX && strcmp(image[i][j].n, "") ; j++ )
cimage[k++] = image[i][j];
*ni = k;
// note tous les numeros des sources donnant des arcs geants
for (i = 0; i < *ni && cimage[i].tau > L.dlarge ; i++);
strcpy(ngiant[i], cimage[i].n);
*ncistart = i;
}
Event Timeline
Log In to Comment