Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
INMOST
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Terekhov
INMOST
Commits
7e72f941
Commit
7e72f941
authored
Jan 17, 2015
by
Alexander Danilov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: solver_test000: use L1 norm for validation
parent
b44ff0bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Tests/solver_test000/main.cpp
Tests/solver_test000/main.cpp
+3
-3
No files found.
Tests/solver_test000/main.cpp
View file @
7e72f941
...
...
@@ -79,7 +79,7 @@ int main(int argc,char ** argv)
double
err
=
0
;
for
(
INMOST_DATA_ENUM_TYPE
i
=
mbeg
;
i
!=
mend
;
i
++
)
{
err
+=
(
x
[
i
]
-
static_cast
<
double
>
(
i
)
/
10.0
);
err
+=
fabs
(
x
[
i
]
-
static_cast
<
double
>
(
i
)
/
10.0
);
}
#if defined(USE_MPI)
double
tmp
;
...
...
@@ -92,7 +92,7 @@ int main(int argc,char ** argv)
std
::
cout
<<
"done, error "
<<
err
<<
"
\t\t\t
"
<<
std
::
endl
;
}
if
(
fabs
(
err
)
>
1.0e-5
||
err
!=
err
)
MPI_Abort
(
MPI_COMM_WORLD
,
-
1
);
if
(
err
>
1.0e-5
||
err
!=
err
)
MPI_Abort
(
MPI_COMM_WORLD
,
-
1
);
x
.
Save
(
"output.rhs"
);
b
.
Save
(
"b.rhs"
);
...
...
@@ -101,4 +101,4 @@ int main(int argc,char ** argv)
Solver
::
Finalize
();
// Finalize solver and close MPI activity
return
0
;
}
\ No newline at end of file
}
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