Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97034636
d_bruiter_omp.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, 20:21
Size
496 B
Mime Type
text/x-c
Expires
Fri, Jan 3, 20:21 (2 d)
Engine
blob
Format
Raw Data
Handle
23315362
Attached To
R1448 Lenstool-HPC
d_bruiter_omp.c
View Options
#include <structure.h>
#include <omp.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <math.h>
// Append a sky background to the pixels of image **z
void d_bruiter_omp(double **z, int nx, int ny)
{
const extern struct g_observ O;
//at this point we mustn't be in parallel
check_not_in_parallel();
int i;
#pragma omp parallel for schedule(static)
for (i = 0; i < ny; i++)
{
int j;
for (j = 0; j < nx; j++)
z[i][j] += O.SKY;
}
}
Event Timeline
Log In to Comment