Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96957510
pro_arclet.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
Wed, Jan 1, 02:46
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Jan 3, 02:46 (2 d)
Engine
blob
Format
Raw Data
Handle
23226202
Attached To
R1448 Lenstool-HPC
pro_arclet.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: pro_arclet */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse
*
* Append physical parameters from input information contained
* in the gal list of galaxies to the gal list of galaxies.
*
* Parameters :
* - n : number of elements in gal
* - gal : galaxie strcture containing the arclet input informations
*/
void
pro_arclet
(
long
int
n
,
struct
galaxie
*
gal
)
{
long
int
i
;
double
qi
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
if
(
n
>
1000
)
printf
(
"INFO: prepare arclet %ld/%ld
\r
"
,
i
+
1
,
n
);
qi
=
gal
[
i
].
q
=
gal
[
i
].
E
.
b
/
gal
[
i
].
E
.
a
;
if
(
qi
>
0.
)
{
gal
[
i
].
tau
=
.5
*
(
1.
/
qi
-
qi
);
gal
[
i
].
dis
=
.5
*
(
1.
/
qi
+
qi
);
gal
[
i
].
eps
=
(
1.
-
qi
)
/
(
1.
+
qi
);
}
else
{
gal
[
i
].
tau
=
gal
[
i
].
E
.
a
;
gal
[
i
].
dis
=
sqrt
(
1.
+
gal
[
i
].
tau
*
gal
[
i
].
tau
);
gal
[
i
].
eps
=
gal
[
i
].
tau
/
gal
[
i
].
dis
;
}
}
if
(
n
>
1000
)
printf
(
"
\n
"
);
}
Event Timeline
Log In to Comment