Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96584456
amplif_matinv.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
Sat, Dec 28, 13:41
Size
1 KB
Mime Type
text/x-c
Expires
Mon, Dec 30, 13:41 (2 d)
Engine
blob
Format
Raw Data
Handle
23212135
Attached To
R1448 Lenstool-HPC
amplif_matinv.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: amplif_matinv */
/* auteur: Ghislain Golse */
/* date: 08/01 */
/* place: Toulouse */
/****************************************************************
* Calcul de la matrice inverse d'amplification pour chaque image (i,j) *
*
* Global variables used :
* - I, multi, amplifi_matinv
* - in e_grad2() : G, lens, lens_table
* - in distcosmo1() : C
* - in e_amp() : G, lens, lens_table
*/
void amplif_matinv()
{
const extern struct g_image I;
extern struct galaxie multi[NFMAX][NIMAX];
extern struct matrix amplifi_matinv[NFMAX][NIMAX];
struct matrix Mat;
double dlsds;
register int i, j;
int n;
/* NPRINTF(stderr,"Coucou.......\n"); */
for (i = 0; i < I.n_mult; i++)
{
n = I.mult[i];
dlsds = multi[i][0].dr;
/* NPRINTF(stderr,"n=%d dlsds=%.3lf\n",n,dlsds);*/
for (j = 0; j < n; j++)
{
Mat = e_grad2_gal(&multi[i][j], NULL);
Mat.a /= multi[i][j].dos;
Mat.b /= multi[i][j].dos;
Mat.c /= multi[i][j].dos;
amplifi_matinv[i][j].a = 1. - Mat.a;
amplifi_matinv[i][j].b = Mat.b;
amplifi_matinv[i][j].c = 1. - Mat.c;
amplifi_matinv[i][j].d = Mat.b;
};
};
}
Event Timeline
Log In to Comment