Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
moab
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
third-party
moab
Commits
ca375e35
Commit
ca375e35
authored
Sep 09, 2016
by
Iulian Grindeanu
Committed by
vijaysm
Oct 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use <limits> instead of MAXFLOAT or HUGE
parent
298b8876
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/LocalDiscretization/LinearTet.cpp
src/LocalDiscretization/LinearTet.cpp
+1
-1
src/LocalDiscretization/LinearTri.cpp
src/LocalDiscretization/LinearTri.cpp
+1
-1
No files found.
src/LocalDiscretization/LinearTet.cpp
View file @
ca375e35
...
...
@@ -104,7 +104,7 @@ namespace moab
// find best initial guess to improve convergence
CartVect
tmp_params
[]
=
{
CartVect
(
-
1
,
-
1
,
-
1
),
CartVect
(
1
,
-
1
,
-
1
),
CartVect
(
-
1
,
1
,
-
1
),
CartVect
(
-
1
,
-
1
,
1
)};
double
resl
=
MAXFLOAT
;
double
resl
=
std
::
numeric_limits
<
double
>::
max
()
;
CartVect
new_pos
,
tmp_pos
;
ErrorCode
rval
;
for
(
unsigned
int
i
=
0
;
i
<
4
;
i
++
)
{
...
...
src/LocalDiscretization/LinearTri.cpp
View file @
ca375e35
...
...
@@ -101,7 +101,7 @@ namespace moab
// find best initial guess to improve convergence
CartVect
tmp_params
[]
=
{
CartVect
(
-
1
,
-
1
,
-
1
),
CartVect
(
1
,
-
1
,
-
1
),
CartVect
(
-
1
,
1
,
-
1
)};
double
resl
=
MAXFLOAT
;
double
resl
=
std
::
numeric_limits
<
double
>::
max
()
;
CartVect
new_pos
,
tmp_pos
;
ErrorCode
rval
;
for
(
unsigned
int
i
=
0
;
i
<
3
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
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