Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97865441
update_emass.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, Jan 6, 22:52
Size
757 B
Mime Type
text/x-c
Expires
Wed, Jan 8, 22:52 (2 d)
Engine
blob
Format
Raw Data
Handle
23422748
Attached To
R1448 Lenstool-HPC
update_emass.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: update_emass */
/* auteur: Jean-Paul Kneib */
/* date: 8/2005 */
/* place: Caltech */
/****************************************************************/
void
update_emass
(
int
i
)
{
extern
struct
pot
lens
[];
switch
(
lens
[
i
].
type
)
{
case
(
12
)
:
// NFW
lens
[
i
].
emass
=
3.
*
lens
[
i
].
epot
;
break
;
case
(
13
)
:
// Sersic
lens
[
i
].
emass
=
3.
*
lens
[
i
].
epot
;
break
;
default:
break
;
}
}
Event Timeline
Log In to Comment