Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
c6f77ffe
Commit
c6f77ffe
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Documentation updates
parent
1cb97461
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/Doxyfile.in
+3
-1
3 additions, 1 deletion
doc/Doxyfile.in
src/riemann/riemann_exact.h
+2
-0
2 additions, 0 deletions
src/riemann/riemann_exact.h
tests/test27cells.c
+14
-3
14 additions, 3 deletions
tests/test27cells.c
with
19 additions
and
4 deletions
doc/Doxyfile.in
+
3
−
1
View file @
c6f77ffe
...
@@ -759,7 +759,9 @@ WARN_LOGFILE =
...
@@ -759,7 +759,9 @@ WARN_LOGFILE =
# spaces.
# spaces.
# Note: If this tag is empty the current directory is searched.
# Note: If this tag is empty the current directory is searched.
INPUT = @top_srcdir@ @top_srcdir@/src @top_srcdir@/src/hydro/Minimal @top_srcdir@/src/gravity/Default @top_srcdir@/riemann
INPUT = @top_srcdir@ @top_srcdir@/src @top_srcdir@/tests @top_srcdir@/examples
INPUT += @top_srcdir@/src/hydro/Minimal @top_srcdir@/src/gravity/Default
INPUT += @top_srcdir@/src/riemann
# This tag can be used to specify the character encoding of the source files
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
...
...
This diff is collapsed.
Click to expand it.
src/riemann/riemann_exact.h
+
2
−
0
View file @
c6f77ffe
...
@@ -192,6 +192,8 @@ __attribute__((always_inline)) INLINE static GFLOAT riemann_guess_p(
...
@@ -192,6 +192,8 @@ __attribute__((always_inline)) INLINE static GFLOAT riemann_guess_p(
*
*
* @param lower_limit Lower limit for the method (riemann_f(lower_limit) < 0)
* @param lower_limit Lower limit for the method (riemann_f(lower_limit) < 0)
* @param upper_limit Upper limit for the method (riemann_f(upper_limit) > 0)
* @param upper_limit Upper limit for the method (riemann_f(upper_limit) > 0)
* @param lowf ??? Bert?
* @param upf ??? Bert?
* @param error_tol Tolerance used to decide if the solution is converged
* @param error_tol Tolerance used to decide if the solution is converged
* @param WL Left state vector
* @param WL Left state vector
* @param WR Right state vector
* @param WR Right state vector
...
...
This diff is collapsed.
Click to expand it.
tests/test27cells.c
+
14
−
3
View file @
c6f77ffe
...
@@ -32,14 +32,25 @@ enum velocity_types {
...
@@ -32,14 +32,25 @@ enum velocity_types {
};
};
/**
/**
* @br
e
if Returns a random number (uniformly distributed) in [a,b[
* @bri
e
f Returns a random number (uniformly distributed) in [a,b[
*/
*/
double
random_uniform
(
double
a
,
double
b
)
{
double
random_uniform
(
double
a
,
double
b
)
{
return
(
rand
()
/
(
double
)
RAND_MAX
)
*
(
b
-
a
)
+
a
;
return
(
rand
()
/
(
double
)
RAND_MAX
)
*
(
b
-
a
)
+
a
;
}
}
/* n is both particles per axis and box size:
* particles are generated on a mesh with unit spacing
/**
* @brief Constructs a cell and all of its particle in a valid state prior to
* a DOPAIR or DOSELF calcuation.
*
* @param n The cube root of the number of particles.
* @param offset The position of the cell offset from (0,0,0).
* @param size The cell size.
* @param h The smoothing length of the particles in units of the inter-particle separation.
* @param density The density of the fluid.
* @param partId The running counter of IDs.
* @param pert The perturbation to apply to the particles in the cell in units of the inter-particle separation.
* @param vel The type of velocity field (0, random, divergent, rotating)
*/
*/
struct
cell
*
make_cell
(
size_t
n
,
double
*
offset
,
double
size
,
double
h
,
struct
cell
*
make_cell
(
size_t
n
,
double
*
offset
,
double
size
,
double
h
,
double
density
,
long
long
*
partId
,
double
pert
,
double
density
,
long
long
*
partId
,
double
pert
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment