-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add backward methods for Horizontal Grid Shift and Point Motion (#16)
* Add backward methods for Horizontal Grid Shift and Point Motion * Add utils.jl * Add tests * Update comments * Fix code * Update tests * Fix code * Add comments * Rename variables * Update comments * More adjustments
- Loading branch information
Showing
6 changed files
with
211 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# ------------------------------------------------------------------ | ||
# Licensed under the MIT License. See LICENSE in the project root. | ||
# ------------------------------------------------------------------ | ||
|
||
# maximum number of iterations in iterative algorithms | ||
const MAXITER = 10 | ||
|
||
""" | ||
atol(T) | ||
atol(x::T) | ||
Absolute tolerance used in source code for approximate | ||
comparison with numbers of type `T`. | ||
""" | ||
atol(x) = atol(typeof(x)) | ||
atol(::Type{Float64}) = 1e-10 | ||
atol(::Type{Float32}) = 1.0f-5 |
Oops, something went wrong.