|
@@ -36,11 +36,12 @@
|
36
|
36
|
|
37
|
37
|
#elif defined(__GNUC__) || defined(__GNUG__)
|
38
|
38
|
/* GNU GCC/G++. --------------------------------------------- */
|
39
|
|
- const char* compiler = "gcc (GCC) " __VERSION__;
|
40
|
|
-
|
|
39
|
+ const char* compiler = "gcc (GCC) ";// __VERSION__;
|
|
40
|
+ const char* ver = __VERSION__;
|
41
|
41
|
#elif defined(_MSC_VER)
|
42
|
42
|
/* Microsoft Visual Studio. --------------------------------- */
|
43
|
|
- const char* compiler = "msvc " _MSC_FULL_VER;
|
|
43
|
+ const char* compiler = "msvc ";
|
|
44
|
+ const int ver = _MSC_FULL_VER;
|
44
|
45
|
|
45
|
46
|
#elif defined(__PGI)
|
46
|
47
|
/* Portland Group PGCC/PGCPP. ------------------------------- */
|
|
@@ -59,7 +60,7 @@ const char *buildString = __DATE__ ", " __TIME__;
|
59
|
60
|
std::cout
|
60
|
61
|
<< "===========================================================================\n"
|
61
|
62
|
<< "Lemma " << LEMMA_VERSION << "\n"
|
62
|
|
- << "[" << compiler << " " << buildString << "]\n"
|
|
63
|
+ << "[" << compiler << " " << ver << " " << buildString << "]\n"
|
63
|
64
|
<< "This program is part of Lemma, a geophysical modelling and inversion API. \n"
|
64
|
65
|
<< " This Source Code Form is subject to the terms of the Mozilla Public\n"
|
65
|
66
|
<< " License, v. 2.0. If a copy of the MPL was not distributed with this\n"
|
|
@@ -151,9 +152,9 @@ const char *buildString = __DATE__ ", " __TIME__;
|
151
|
152
|
auto earth = LayeredEarthEM::NewSP();
|
152
|
153
|
VectorXcr sigma;
|
153
|
154
|
VectorXr thick;
|
154
|
|
- earth->SetNumberOfLayers(CondMod[0]+1);
|
155
|
|
- sigma.resize(CondMod[0]+1); sigma(0) = 0; // airlayer
|
156
|
|
- thick.resize(CondMod[0]-1);
|
|
155
|
+ earth->SetNumberOfLayers(static_cast<int>(CondMod[0])+1);
|
|
156
|
+ sigma.resize(static_cast<int>(CondMod[0])+1); sigma(0) = 0; // airlayer
|
|
157
|
+ thick.resize(static_cast<int>(CondMod[0])-1);
|
157
|
158
|
int ilay=1;
|
158
|
159
|
for ( ; ilay/2<CondMod[0]-1; ilay+=2) {
|
159
|
160
|
sigma(ilay/2+1) = 1./CondMod[ilay];
|