kspaceFirstOrder3D-OMP  1.2
The C++ implementation of the k-wave toolbox for the time-domain simulation of acoustic wave fields in 3D
ErrorMessages.h
Go to the documentation of this file.
1 /**
2  * @file ErrorMessages.h
3  *
4  * @author Jiri Jaros \n
5  * Faculty of Information Technology \n
6  * Brno University of Technology \n
7  * jarosjir@fit.vutbr.cz
8  *
9  * @brief The header file containing routines for error messages and error messages common for both linux and
10  * windows version. The specific error messages are in separate files ErrorMessagesLinux.h
11  * and ErrorMessagesWindows.h
12  *
13  * @version kspaceFirstOrder3D 2.16
14  *
15  * @date 30 August 2017, 11:39 (created) \n
16  * 04 September 2017, 15:05 (revised)
17  *
18  * @copyright Copyright (C) 2017 Jiri Jaros and Bradley Treeby.
19  *
20  * This file is part of the C++ extension of the [k-Wave Toolbox](http://www.k-wave.org).
21  *
22  * This file is part of the k-Wave. k-Wave is free software: you can redistribute it and/or modify it under the terms
23  * of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the
24  * License, or (at your option) any later version.
25  *
26  * k-Wave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
27  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
28  * more details.
29  *
30  * You should have received a copy of the GNU Lesser General Public License along with k-Wave.
31  * If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).
32  */
33 
34 
35 #ifndef ERROR_MESSAGES_H
36 #define ERROR_MESSAGES_H
37 
38 #ifdef __linux__
40 #endif
41 
42 // Windows build
43 #ifdef _WIN64
45 #endif
46 
47 //--------------------------------------------------------------------------------------------------------------------//
48 //-------------------------------- Common error messages for both Linux and Windows ----------------------------------//
49 //--------------------------------------------------------------------------------------------------------------------//
50 
51 /// delimiters for linux paths
53  = "/\\_,.:-| ()[]{}";
54 /// error message - out of memory
56  = "Error: Not enough CPU memory to run this simulation.";
57 /// Unknown error - unknown error
59  = "Error: An unknown error happened. ";
60 
61 //----------------------------------------------- HDF5 error messages ------------------------------------------------//
62 /// HDF5 error message
64  = "Error: File \"%s\" could not be created.";
65 /// HDF5 error message
67  = "Error: Cannot recreate an opened file \"%s\".";
68 /// HDF5 error message
70  = "Error: Cannot reopen an opened file \"%s\".";
71 /// HDF5 error message
73  = "Error: File \"%s\" could not be closed.";
74 /// HDF5 error message
76  = "Error: Could not write into \"%s\" dataset.";
77 /// HDF5 error message
79  = "Error: Could not read from \"%s\" dataset.";
80 /// HDF5 error message
82  = "Error: Dataset \"%s\" has wrong dimension sizes.";
83 /// HDF5 error message
85  = "Error: File \"%s\" was not found or could not be opened.";
86 /// HDF5 error message
88  = "Error: File \"%s\" is not a valid HDF5 file.";
89 /// HDF5 error message
91  = "Error: File \"%s\" could not open dataset \"%s\".";
92 /// HDF5 error message
94  = "Error: File \"%s\", dataset \"%s\" could set compression level [%ld].";
95 /// HDF5 error message
97  = "Error: Bad attribute value: [%s,%s] = %s.";
98 /// HDF5 error message
100  = "Error: Could not write into \"%s\" attribute of \"%s\" dataset.";
101 /// HDF5 error message
103  = "Error: Could not read from \"%s\" attribute of \"%s\" dataset.";
104 /// HDF5 error message
106  = "Error: Could not create group \"%s\" in file \"%s\".";
107 /// HDF5 error message
109  = "Error: Could not open group \"%s\" in file \"%s\".";
110 /// HDF5 error message
112  = "Error: The input file has not a valid format.";
113 /// HDF5 error message
115  = "Error: The output file has not a valid format.";
116 /// HDF5 error message
118  = "Error: The checkpoint file has not a valid format.";
119 
120 
121 //------------------------------------------------- Matrix Classes ---------------------------------------------------//
122 /// Matrix class error message
124  = "Error: Matrix [%s] data type is not of single precision floating point.";
125 /// Matrix class error message
127  = "Error: Matrix [%s] domain is not real.";
128 /// Matrix class error message
130  = "Error: Matrix [%s] domain is not complex.";
131 /// Matrix class error message
133  = "Error: Matrix [%s] data type is not unsigned long.";
134 
135 
136 //------------------------------------------------ Matrix Container --------------------------------------------------//
137 /// Matrix container error message
139  = "Error: Matrix [%s] has unknown type in the C++ code. [File, Line] : [%s,%d].";
140 
141 /// Matrix container error message
143  = "Error: Matrix [%s] is being reallocated in matrix container.";
144 
145 
146 //-------------------------------------------- Command line Parameters -----------------------------------------------//
147 /// Command line parameters error message
149  = "Error: No or invalid progress print interval.";
150 /// Command line parameters error message
152  = "Error: No or invalid number of CPU threads.";
153 /// Command line parameters error message
155  = "Error: No or invalid compression level.";
156 /// Command line parameters error message
158  = "Error: No or invalid collection start time step.";
159 /// Command line parameters error message
161  = "Error: No or invalid number of time step to benchmark.";
162 /// Command line parameters error message
164  = "Error: No or invalid verbose level.";
165 
166 /// Error message - input file was not specified
168  = "Error: The input file was not specified.";
169 /// Command line parameters error message
171  = "Error: The output file was not specified.";
172 /// Command line parameters error message
174  = "Error: The checkpoint file was not specified.";
175 /// Command line parameters error message
177  = "Error: The checkpoint interval was not specified.";
178 /// Command line parameter error message
180  = "Error: Unknown command line parameter.";
181 /// Command line parameter error message
183  = "Error: Unknown command line parameter or missing argument.";
184 
185 /// Command line parameters error message
187  = "Error: Illegal value of alpha_power (must not equal to 1.0).";
188 /// Command line parameters error message
190  = "Error: The beginning of data sampling is out of the simulation time span <%zu, %zu>.";
191 
192 /// Command line parameters error message
194  = "Error: Incorrect input file\"%s\" format.";
195 /// Command line parameters error message
197  = "Error: Incorrect major version of the HDF5 file %s (expected is %s).";
198 /// Command line parameters error message
200  = "Error: Incorrect minor version of the HDF5 file %s (expected is %s).";
201 /// Command line parameters error message
203  = "Error: The sensor mask type specified in the input file is not supported.";
204 /// Command line parameters error message
206  = "Error: --u_non_staggered_raw is not supported along with the input file of the version 1.0.";
207 
208 
209 //-------------------------------------------- KSpaceFirstOrder3DSolver ----------------------------------------------//
210 /// KSpaceFirstOrder3DSolver error message
212  = "Error: Incorrect checkpoint file \"%s\" format.";
213 
214 /// KSpaceFirstOrder3DSolver error message
216  = "Error: Incorrect output file \"%s\" format.";
217 
218 /// KSpaceFirstOrder3DSolver error message
220  = "Error: The dimensions [%ld, %ld, %ld] of the checkpoint file don't match the simulation "
221  "dimensions [%ld, %ld, %ld].";
222 
223 /// KSpaceFirstOrder3DSolver error message
225  = "Error: The dimensions [%ld, %ld, %ld] of the output file don't match the simulation "
226  "dimensions [%ld, %ld, %ld].";
227 
228 
229 
230 //-------------------------------------------------- FFTW errors -----------------------------------------------------//
231 /// FFTW error message
233  = "creating plan for 3D real-to-complex fft.";
234 /// FFTW error message
236  = "creating plan for 3D complex-to-real fft.";
237 /// FFTW error message
239  = "creating for 1D real-to-complex fft plan in X direction.";
240 /// FFTW error message
242  = "creating for 1D real-to-complex fft plan in Y direction.";
243 /// FFTW error message
245  = "creating for 1D real-to-complex fft plan in Z direction.";
246 /// FFTW error message
248  = "creating for 1D complex-to-real fft plan in X direction.";
249 /// FFTW error message
251  = "creating for 1D complex-to-real fft plan in Y direction.";
252 /// FFTW error message
254  = "creating 1D complex-to-real fft plan in Z direction.";
255 
256 /// FFTW error message
258  = "destroying plan for 3D real-to-complex fft.";
259 /// FFTW error message
261  = "destroying plan for 3D complex-to-real fft.";
262 /// FFTW error message
264  = "destroying for 1D real-to-complex fft plan in X direction.";
265 /// FFTW error message
267  = "destroying for 1D real-to-complex fft plan in Y direction.";
268 /// FFTW error message
270  = "destroying for 1D real-to-complex fft plan in Z direction.";
271 /// FFTW error message
273  = "destroying for 1D complex-to-real fft plan in X direction.";
274 /// FFTW error message
276  = "destroying for 1D complex-to-real fft plan in Y direction.";
277 /// FFTW error message
279  = "destroying 1D complex-to-real fft plan in Z direction.";
280 
281 /// FFTW error message
283  = "executing plan for 3D real-to-complex fft.";
284 /// FFTW error message
286  = "executing plan for 3D complex-to-real fft.";
287 /// FFTW error message
289  = "executing for 1D real-to-complex fft plan in X direction.";
290 /// FFTW error message
292  = "executing for 1D real-to-complex fft plan in Y direction.";
293 /// FFTW error message
295  = "executing for 1D real-to-complex fft plan in Z direction.";
296 /// FFTW error message
298  = "executing for 1D complex-to-real fft plan in X direction.";
299 /// FFTW error message
301  = "executing for 1D complex-to-real fft plan in Y direction.";
302 /// FFTW error message
304  = "executing 1D complex-to-real fft plan in Z direction.";
305 
306 /// FFTW error message
308  = "Warning: Wisdom could not be exported.";
309 /// FFTW error message
311 = "Warning: Wisdom could not be imported.";
312 
313 #endif /* ERROR_MESSAGES_H */
const std::string ErrorMessage
Datatype for error messages.
ErrorMessage kErrFmtCannotCloseFile
HDF5 error message.
Definition: ErrorMessages.h:73
ErrorMessage kErrFmtBadMajorFileVersion
Command line parameters error message.
ErrorMessage kErrFmtInvalidNumberOfThreads
Command line parameters error message.
ErrorMessage kErrFmtDestroyC2RFftPlan1DX
FFTW error message.
ErrorMessage kErrFmtMatrixNotIndex
Matrix class error message.
ErrorMessage kErrFmtBadDimensionSizes
HDF5 error message.
Definition: ErrorMessages.h:82
ErrorMessage kErrFmtCreateR2CFftPlan1DZ
FFTW error message.
ErrorMessage kErrFmtExecuteC2RFftPlan1DX
FFTW error message.
ErrorMessage kErrFmtExecuteR2CFftPlan3D
FFTW error message.
ErrorMessage kErrFmtCannotReopenFile
HDF5 error message.
Definition: ErrorMessages.h:70
ErrorMessage kErrFmtExecuteC2RFftPlan3D
FFTW error message.
The header file containing linux specific error messages.
ErrorMessage kErrFmtPathDelimiters
delimiters for linux paths
Definition: ErrorMessages.h:53
ErrorMessage kErrFmtCannotReadDataset
HDF5 error message.
Definition: ErrorMessages.h:79
ErrorMessage kErrFmtExecuteR2CFftPlan1DX
FFTW error message.
ErrorMessage kErrFmtBadMatrixType
Matrix container error message.
ErrorMessage kErrFmtCreateR2CFftPlan1DX
FFTW error message.
ErrorMessage kErrFmtDestroyR2CFftPlan1DX
FFTW error message.
ErrorMessage kErrFmtCreateC2RFftPlan3D
FFTW error message.
ErrorMessage kErrFmtCannotCreateGroup
HDF5 error message.
ErrorMessage kErrFmtDestroyC2RFftPlan1DY
FFTW error message.
ErrorMessage kErrFmtIllegalAlphaPowerValue
Command line parameters error message.
ErrorMessage kErrFmtCannotRecreateFile
HDF5 error message.
Definition: ErrorMessages.h:67
ErrorMessage kErrFmtBadAttributeValue
HDF5 error message.
Definition: ErrorMessages.h:97
ErrorMessage kErrFmtDestroyR2CFftPlan1DY
FFTW error message.
ErrorMessage kErrFmtMatrixNotComplex
Matrix class error message.
ErrorMessage kErrFmtNoCompressionLevel
Command line parameters error message.
ErrorMessage kErrFmtExecuteC2RFftPlan1DY
FFTW error message.
ErrorMessage kErrFmtNoInputFile
Error message - input file was not specified.
ErrorMessage kErrFmtNoSamplingStartTimeStep
Command line parameters error message.
ErrorMessage kErrFmtFftWisdomNotExported
FFTW error message.
ErrorMessage kErrFmtCreateC2RFftPlan1DZ
FFTW error message.
The header file containing windows specific error messages.
ErrorMessage kErrFmtExecuteR2CFftPlan1DY
FFTW error message.
ErrorMessage kErrFmtBadMinorFileVersion
Command line parameters error message.
ErrorMessage kErrFmtDestroyC2RFftPlan3D
FFTW error message.
ErrorMessage kErrFmtCannotOpenGroup
HDF5 error message.
ErrorMessage kErrFmtUnknownParameter
Command line parameter error message.
ErrorMessage kErrFmtUnknownError
Unknown error - unknown error.
Definition: ErrorMessages.h:59
ErrorMessage kErrFmtCannotReadAttribute
HDF5 error message.
ErrorMessage kErrFmtIllegalSamplingStartTimeStep
Command line parameters error message.
ErrorMessage kErrFmtBadCheckpointFileType
HDF5 error message.
ErrorMessage kErrFmtCannotSetCompression
HDF5 error message.
Definition: ErrorMessages.h:94
ErrorMessage kErrFmtExecuteR2CFftPlan1DZ
FFTW error message.
ErrorMessage kErrFmtDestroyR2CFftPlan1DZ
FFTW error message.
ErrorMessage kErrFmtCreateC2RFftPlan1DX
FFTW error message.
ErrorMessage kErrFmtCannotWriteDataset
HDF5 error message.
Definition: ErrorMessages.h:76
ErrorMessage kErrFmtRelocationError
Matrix container error message.
ErrorMessage kErrFmtNonStaggeredVelocityNotSupportedFileVersion
Command line parameters error message.
ErrorMessage kErrFmtCannotCreateFile
HDF5 error message.
Definition: ErrorMessages.h:64
ErrorMessage kErrFmtBadInputFileType
HDF5 error message.
ErrorMessage kErrFmtDestroyC2RFftPlan1DZ
FFTW error message.
ErrorMessage kErrFmtNoCheckpointFile
Command line parameters error message.
ErrorMessage kErrFmtBadInputFileFormat
Command line parameters error message.
ErrorMessage kErrFmtBadCheckpointFileFormat
KSpaceFirstOrder3DSolver error message.
ErrorMessage kErrFmtBadOutputFileType
HDF5 error message.
ErrorMessage kErrFmtFileNotOpen
HDF5 error message.
Definition: ErrorMessages.h:85
ErrorMessage kErrFmtMatrixNotReal
Matrix class error message.
ErrorMessage kErrFmtCannotWriteAttribute
HDF5 error message.
ErrorMessage kErrFmtNoVerboseLevel
Command line parameters error message.
ErrorMessage kErrFmtCreateR2CFftPlan3D
FFTW error message.
ErrorMessage kErrFmtExecuteC2RFftPlan1DZ
FFTW error message.
ErrorMessage kErrFmtNoOutputFile
Command line parameters error message.
ErrorMessage kErrFmtDestroyR2CFftPlan3D
FFTW error message.
ErrorMessage kErrFmtNotHdf5File
HDF5 error message.
Definition: ErrorMessages.h:88
ErrorMessage kErrFmtCreateC2RFftPlan1DY
FFTW error message.
ErrorMessage kErrFmtOutOfMemory
error message - out of memory
Definition: ErrorMessages.h:56
ErrorMessage kErrFmtCannotOpenDataset
HDF5 error message.
Definition: ErrorMessages.h:91
ErrorMessage kErrFmtOutputDimensionsMismatch
KSpaceFirstOrder3DSolver error message.
ErrorMessage kErrFmtNoProgressPrintInterval
Command line parameters error message.
ErrorMessage kErrFmtNoBenchmarkTimeStep
Command line parameters error message.
ErrorMessage kErrFmtCheckpointDimensionsMismatch
KSpaceFirstOrder3DSolver error message.
ErrorMessage ErrFmtFftWisdomNotImported
FFTW error message.
ErrorMessage kErrFmtBadOutputFileFormat
KSpaceFirstOrder3DSolver error message.
ErrorMessage kErrFmtNoCheckpointInterval
Command line parameters error message.
ErrorMessage kErrFmtBadSensorMaskType
Command line parameters error message.
ErrorMessage kErrFmtUnknownParameterOrArgument
Command line parameter error message.
ErrorMessage kErrFmtCreateR2CFftPlan1DY
FFTW error message.
ErrorMessage kErrFmtMatrixNotFloat
Matrix class error message.