1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
From 44851d9e90d9847fbfeaaea7b0ed1e7c3d093dcb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <me@besser82.io>
Date: Wed, 24 Feb 2016 23:26:20 +0100
Subject: [PATCH] fix semantic errors in error-msgs
---
Utilities/extra.cpp | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/Utilities/extra.cpp b/Utilities/extra.cpp
index 21862e6..9f59263 100644
--- a/Utilities/extra.cpp
+++ b/Utilities/extra.cpp
@@ -49,7 +49,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
ofstream out_Matrix (s_MatrixName.c_str());
if(!out_Matrix) {
- cout<<"Error creating file: \""<<out_Matrix<<"\""<<endl;
+ cout<<"Error creating file: \""<<s_MatrixName<<"\""<<endl;
exit(1);
}
@@ -84,7 +84,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
string s_MatrixName = "pattern"+s_postfix+s_BaseName;
ofstream out_Matrix (s_MatrixName.c_str());
if(!out_Matrix) {
- cout<<"Error creating file: \""<<out_Matrix<<"\""<<endl;
+ cout<<"Error creating file: \""<<s_MatrixName<<"\""<<endl;
exit(1);
}
@@ -111,7 +111,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
string s_CompressedMatrixName = "CompressedMatrix"+s_postfix+s_BaseName;
ofstream out_CompressedMatrix (s_CompressedMatrixName.c_str());
if(!out_CompressedMatrix) {
- cout<<"Error creating file: \""<<out_CompressedMatrix<<"\""<<endl;
+ cout<<"Error creating file: \""<<s_CompressedMatrixName<<"\""<<endl;
exit(1);
}
@@ -140,7 +140,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
string s_MatrixName = "pattern_value"+s_postfix+s_BaseName;
ofstream out_Matrix (s_MatrixName.c_str());
if(!out_Matrix) {
- cout<<"Error creating file: \""<<out_Matrix<<"\""<<endl;
+ cout<<"Error creating file: \""<<s_MatrixName<<"\""<<endl;
exit(1);
}
@@ -167,7 +167,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
string s_CompressedMatrixName = "CompressedMatrix"+s_postfix+s_BaseName;
ofstream out_CompressedMatrix (s_CompressedMatrixName.c_str());
if(!out_CompressedMatrix) {
- cout<<"Error creating file: \""<<out_CompressedMatrix<<"\""<<endl;
+ cout<<"Error creating file: \""<<s_CompressedMatrixName<<"\""<<endl;
exit(1);
}
@@ -671,7 +671,6 @@ int buildDotWithColor(ColPack::GraphColoringInterface &g, vector<string> &ListOf
}
}
}
-
}
}
}
@@ -1483,4 +1482,3 @@ int DisplayADICFormat_Value(std::list<std::vector<double> > &lvd_Value) {
}
#endif
-
|