Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96643413
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
Sun, Dec 29, 10:09
Size
496 B
Mime Type
text/x-c
Expires
Tue, Dec 31, 10:09 (2 d)
Engine
blob
Format
Raw Data
Handle
23218515
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