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
Xavier Garrido
CAMEL
Commits
55998292
Commit
55998292
authored
Jul 17, 2018
by
Matthieu Tristram
Browse files
Clean WARNING
parent
764ea70c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/camel/Class/ClassEngine.cc
src/camel/Class/ClassEngine.cc
+7
-7
No files found.
src/camel/Class/ClassEngine.cc
View file @
55998292
...
...
@@ -557,7 +557,7 @@ double ClassEngine::get_growthD(double z)
double
ClassEngine
::
get_Pklin
(
double
k
,
double
z
){
double
tau
;
int
index
;
int
ret
,
index
;
double
*
pk_ic
=
NULL
;
...
...
@@ -565,19 +565,19 @@ double ClassEngine::get_Pklin(double k, double z){
background_tau_of_z
(
&
ba
,
z
,
&
tau
);
background_at_tau
(
&
ba
,
tau
,
ba
.
long_info
,
ba
.
inter_normal
,
&
index
,
pvecback
);
int
ret
=
spectra_pk_at_k_and_z
(
&
ba
,
&
pm
,
&
sp
,
k
,
z
,
&
mypk
,
pk_ic
);
ret
=
spectra_pk_at_k_and_z
(
&
ba
,
&
pm
,
&
sp
,
k
,
z
,
&
mypk
,
pk_ic
);
return
mypk
;
}
double
ClassEngine
::
get_PkNL
(
double
k
,
double
z
){
double
tau
;
int
index
;
int
ret
,
index
;
double
mypk
;
background_tau_of_z
(
&
ba
,
z
,
&
tau
);
//cout << "pknl after bkg "<<tau<< endl;
background_at_tau
(
&
ba
,
tau
,
ba
.
long_info
,
ba
.
inter_normal
,
&
index
,
pvecback
);
//cout << "pknl after bkg @tau "<<tau<< " z "<<z<< " k "<< k << endl;
int
ret
=
spectra_pk_nl_at_k_and_z
(
&
ba
,
&
pm
,
&
sp
,
k
,
z
,
&
mypk
);
ret
=
spectra_pk_nl_at_k_and_z
(
&
ba
,
&
pm
,
&
sp
,
k
,
z
,
&
mypk
);
return
mypk
;
}
...
...
@@ -685,7 +685,7 @@ double ClassEngine::com_distance(double z)
double
ClassEngine
::
get_Da
(
double
z
)
{
double
tau
;
double
tau
,
H_z
,
D_ang
;
int
index
;
//transform redshift in conformal time
background_tau_of_z
(
&
ba
,
z
,
&
tau
);
...
...
@@ -694,8 +694,8 @@ double ClassEngine::get_Da(double z)
background_at_tau
(
&
ba
,
tau
,
ba
.
long_info
,
ba
.
inter_normal
,
&
index
,
pvecback
);
double
H_z
=
pvecback
[
ba
.
index_bg_H
];
double
D_ang
=
pvecback
[
ba
.
index_bg_ang_distance
];
H_z
=
pvecback
[
ba
.
index_bg_H
];
D_ang
=
pvecback
[
ba
.
index_bg_ang_distance
];
#ifdef DBUG
cout
<<
"H_z= "
<<
H_z
<<
endl
;
cout
<<
"D_ang= "
<<
D_ang
<<
endl
;
...
...
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