Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xQML
xQML
Commits
da2d72f3
Commit
da2d72f3
authored
Feb 01, 2019
by
Matthieu Tristram
Browse files
Switch to int64 to avoid segfault
parent
0e2ec732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/libcov.c
src/libcov.c
+4
-2
No files found.
src/libcov.c
View file @
da2d72f3
...
...
@@ -6,14 +6,16 @@ void build_dSdC( int nside, int nstokes, int npix, int nbin, long *ellbins, long
const
int
lmax1
=
lmax
+
1
;
const
int
ns
=
3
,
nspecall
=
4
;
const
int
nspec
=
nstokes2nspec
(
nstokes
);
const
int
npixtot
=
npix
*
nstokes
;
const
int
64_t
npixtot
=
npix
*
nstokes
;
// fprintf( stdout, "lmax=%d\n", lmax);
// fprintf( stdout, "npix=%d\n", npix);
// fprintf( stdout, "nstokes=%d\n", nstokes);
// fprintf( stdout, "nspec=%d\n", nspec);
memset
(
dSdC
,
0
.,
(
nspec
*
nbin
*
nstokes
*
npix
*
nstokes
*
npix
)
*
sizeof
(
double
));
int64_t
ntot
=
nspec
*
nbin
*
npixtot
*
npixtot
;
// fprintf( stdout, "memset (%d,%d,%d,%d = %lld)...\n", nspec,nbin,nstokes,npix,ntot);
memset
(
dSdC
,
0
.,
ntot
*
sizeof
(
double
));
#pragma omp parallel default(none) shared(stdout,nbin,nside,npix,nstokes,dSdC,ipix,bl,ellbins)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment