Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LAMBERT Jean-charles
uns_projects
Commits
5ca38e71
Commit
5ca38e71
authored
Oct 20, 2016
by
LAMBERT Jean-charles
Browse files
add float/souble support
parent
ec28f8c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uns_sfrrate.cc
View file @
5ca38e71
...
...
@@ -203,12 +203,12 @@ void process(uns::CunsIn * uns, float agemax, uns::CunsOut * unsout)
// Put gas particles into an octree and make tree
std
::
cerr
<<
"Start tree building.....
\n
"
;
CTree
*
tree
=
new
CTree
(
ngas
,
gpos
,(
float
*
)
NULL
);
CTree
<
float
>
*
tree
=
new
CTree
<
float
>
(
ngas
,
gpos
,(
float
*
)
NULL
);
time_maketree
=
timing
.
cpu
();
std
::
cerr
<<
"Tree done in :"
<<
time_maketree
<<
" secondes
\n
"
;
// create neibors object
CNeibors
*
neibors
=
new
CNeibors
(
tree
);
CNeibors
<
float
>
*
neibors
=
new
CNeibors
<
float
>
(
tree
);
// find neibors
timing
.
restart
();
...
...
Write
Preview
Supports
Markdown
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