Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96626207
e_lens_P.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
Sun, Dec 29, 04:23
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Dec 31, 04:23 (1 d, 6 h)
Engine
blob
Format
Raw Data
Handle
23218559
Attached To
R1448 Lenstool-HPC
e_lens_P.c
View Options
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: e_lens */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
/* Return the number of images for a given source position.
*/
int e_lens_P(struct point ps, struct point pim[NIMAX], double dlsds)
{
const extern struct point gsource_global[NGGMAX][NGGMAX];
struct bitriplet Tsol[NIMAX];
//struct chaine *parent;
int nimage;
//Tsol=NULL;
nimage = inverse(gsource_global, &ps, Tsol);
// if ((nimage>0)&&(nimage<20))
nimage = e_test_P(Tsol, nimage, &ps, pim, dlsds, 0.00001);
/* else
{
// free Tsol list until it is NULL value. (usefull in case nimage > NIMAX)
// Go down to the last element of the Tsol list.
while( Tsol != NULL )
{
parent = Tsol;
Tsol=(Tsol->F);
free((struct chaine*) parent);
}
}*/
return(nimage);
}
Event Timeline
Log In to Comment