|
@@ -27,6 +27,26 @@
|
27
|
27
|
#include "FDEM1D"
|
28
|
28
|
#include "timer.h"
|
29
|
29
|
|
|
30
|
+#if defined(__clang__)
|
|
31
|
+ /* Clang/LLVM. ---------------------------------------------- */
|
|
32
|
+ const char* compiler = "clang";
|
|
33
|
+#elif defined(__ICC) || defined(__INTEL_COMPILER)
|
|
34
|
+ /* Intel ICC/ICPC. ------------------------------------------ */
|
|
35
|
+ const char* compiler = "icpc";
|
|
36
|
+
|
|
37
|
+#elif defined(__GNUC__) || defined(__GNUG__)
|
|
38
|
+ /* GNU GCC/G++. --------------------------------------------- */
|
|
39
|
+ const char* compiler = "gcc (GCC) " __VERSION__;
|
|
40
|
+
|
|
41
|
+#elif defined(_MSC_VER)
|
|
42
|
+ /* Microsoft Visual Studio. --------------------------------- */
|
|
43
|
+ const char* compiler = "msvc " _MSC_FULL_VER;
|
|
44
|
+
|
|
45
|
+#elif defined(__PGI)
|
|
46
|
+ /* Portland Group PGCC/PGCPP. ------------------------------- */
|
|
47
|
+ const char* compiler = "pgc";
|
|
48
|
+#endif
|
|
49
|
+
|
30
|
50
|
using namespace Lemma;
|
31
|
51
|
|
32
|
52
|
std::vector<Real> readinpfile(const std::string& fname);
|
|
@@ -35,24 +55,20 @@ std::vector<std::string> readinpfile2(const std::string& fname);
|
35
|
55
|
|
36
|
56
|
int main(int argc, char** argv) {
|
37
|
57
|
|
38
|
|
- std::cout <<
|
39
|
|
- "\n"
|
40
|
|
- << "Hantenna \n\n"
|
41
|
|
- << "Hantenna is a programme for computing the H field from polygonal wire\n"
|
42
|
|
- << "loop sources \n\n"
|
43
|
|
- << "Hantenna was built using Lemma (Lemma is an Electromagnetics Modelling API)\n"
|
44
|
|
- << "Lemma is Free and Open Source Software (FOSS) and is released under\n"
|
45
|
|
- << "the MPL, it is covered by the following copyrights:\n"
|
46
|
|
- << "Copyright (C) 2009, 2010, 2011, 2012, 218 Trevor P. Irons\n"
|
47
|
|
- << "Copyright (C) 2011, 2012 M. Andy Kass\n\n"
|
|
58
|
+const char *buildString = __DATE__ ", " __TIME__;
|
|
59
|
+ std::cout
|
|
60
|
+ << "===========================================================================\n"
|
|
61
|
+ << "Lemma " << LEMMA_VERSION << "\n"
|
|
62
|
+ << "[" << compiler << " " << buildString << "]\n"
|
|
63
|
+ << "This program is part of Lemma, a geophysical modelling and inversion API. \n"
|
|
64
|
+ << " This Source Code Form is subject to the terms of the Mozilla Public\n"
|
|
65
|
+ << " License, v. 2.0. If a copy of the MPL was not distributed with this\n"
|
|
66
|
+ << " file, You can obtain one at http://mozilla.org/MPL/2.0/. \n"
|
|
67
|
+ << "Copyright (C) 2018 Lemma Software \n"
|
48
|
68
|
<< "More information may be found at: https://lemmasoftware.org\n"
|
49
|
|
- << " info@lemmasoftware.org\n\n"
|
50
|
|
- << "=====================================================================\n"
|
51
|
|
- << "This programme is part of Lemma, a geophysical modelling and inversion API \n"
|
52
|
|
- << "This Source Code Form is subject to the terms of the Mozilla Public\n"
|
53
|
|
- << "License, v. 2.0. If a copy of the MPL was not distributed with this\n"
|
54
|
|
- << "file, You can obtain one at http://mozilla.org/MPL/2.0/. \n"
|
55
|
|
- << "=====================================================================\n\n\n";
|
|
69
|
+ << " info@lemmasoftware.org\n"
|
|
70
|
+ << "===========================================================================\n\n"
|
|
71
|
+ << "Hantenna calculates the harmonic H field from polygonal wire loop sources\n";
|
56
|
72
|
|
57
|
73
|
if (argc < 5) {
|
58
|
74
|
std::cout << "usage: hantenna.exe trans.inp cond.inp points.inp config.inp \n";
|