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
12e478a5
Commit
12e478a5
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Post-merge fixes
parent
6b8497f1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!242
Add the cooling infrastructure and the const_du and const_lambda
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/cell.h
+1
-1
1 addition, 1 deletion
src/cell.h
src/cooling.c
+1
-1
1 addition, 1 deletion
src/cooling.c
src/task.c
+1
-1
1 addition, 1 deletion
src/task.c
src/task.h
+0
-2
0 additions, 2 deletions
src/task.h
with
3 additions
and
5 deletions
src/cell.h
+
1
−
1
View file @
12e478a5
...
...
@@ -159,7 +159,7 @@ struct cell {
struct
task
*
grav_external
;
/* Task for cooling */
struct
task
*
cooling
_task
;
struct
task
*
cooling
;
/* Number of tasks that are associated with this cell. */
int
nr_tasks
;
...
...
This diff is collapsed.
Click to expand it.
src/cooling.c
+
1
−
1
View file @
12e478a5
...
...
@@ -98,7 +98,7 @@ void update_entropy(const struct phys_const* const phys_const, const struct Unit
float
u_old
;
float
u_new
;
float
new_entropy
;
float
old_entropy
=
p
->
entropy
;
//
float old_entropy = p->entropy;
float
rho
=
p
->
rho
;
// u_old = old_entropy/(GAMMA_MINUS1) * pow(rho,GAMMA_MINUS1);
...
...
This diff is collapsed.
Click to expand it.
src/task.c
+
1
−
1
View file @
12e478a5
...
...
@@ -51,7 +51,7 @@ const char *taskID_names[task_type_count] = {
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub_self"
,
"sub_pair"
,
"init"
,
"ghost"
,
"extra_ghost"
,
"kick"
,
"kick_fixdt"
,
"send"
,
"recv"
,
"grav_gather_m"
,
"grav_fft"
,
"grav_mm"
,
"grav_up"
,
"grav_external"
};
"grav_mm"
,
"grav_up"
,
"grav_external"
,
"cooling"
};
const
char
*
subtaskID_names
[
task_subtype_count
]
=
{
"none"
,
"density"
,
"gradient"
,
"force"
,
"grav"
,
"tend"
};
...
...
This diff is collapsed.
Click to expand it.
src/task.h
+
0
−
2
View file @
12e478a5
...
...
@@ -100,8 +100,6 @@ struct task {
/*! Sub-type of the task (for the tasks that have one */
enum
task_subtypes
subtype
;
char
skip
,
tight
,
implicit
;
int
flags
,
wait
,
rank
,
weight
;
/*! Flags used to carry additional information (e.g. sort directions) */
int
flags
;
...
...
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