Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary_c-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Izzard, Robert Dr (Maths & Physics)
binary_c-python
Commits
944ffdf4
Commit
944ffdf4
authored
6 years ago
by
Izzard, Robert Dr (Maths & Physics)
Browse files
Options
Downloads
Patches
Plain Diff
add a failure when discs are run with a solver other than forward euler
parent
c12f579f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/disc/evolve_disc.c
+7
-1
7 additions, 1 deletion
src/disc/evolve_disc.c
with
7 additions
and
1 deletion
src/disc/evolve_disc.c
+
7
−
1
View file @
944ffdf4
...
@@ -25,12 +25,18 @@ void evolve_disc(struct stardata_t * const stardata,
...
@@ -25,12 +25,18 @@ void evolve_disc(struct stardata_t * const stardata,
Discdebug
(
1
,
"EV t=%g dt=%g
\n
"
,
Discdebug
(
1
,
"EV t=%g dt=%g
\n
"
,
disc
->
lifetime
/
YEAR_LENGTH_IN_SECONDS
,
disc
->
lifetime
/
YEAR_LENGTH_IN_SECONDS
,
dtsecs
/
YEAR_LENGTH_IN_SECONDS
);
dtsecs
/
YEAR_LENGTH_IN_SECONDS
);
if
(
stardata
->
preferences
->
solver
!=
SOLVER_FORWARD_EULER
)
{
Exit_binary_c
(
BINARY_C_ALGORITHM_OUT_OF_RANGE
,
"The discs algorithm has not been tested with solvers other than Forward-Euler. Please only use this solver."
);
}
disc
->
first
=
disc
->
first
==
TRUE
?
TRUE
:
Boolean_
(
Is_zero
(
disc
->
lifetime
));
disc
->
first
=
disc
->
first
==
TRUE
?
TRUE
:
Boolean_
(
Is_zero
(
disc
->
lifetime
));
disc
->
dT
=
0
.
0
;
disc
->
dT
=
0
.
0
;
Clear_disc_feedback
(
disc
);
Clear_disc_feedback
(
disc
);
if
(
Disc_is_disc
(
disc
))
if
(
Disc_is_disc
(
disc
))
{
{
/*
/*
...
...
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