Skip to content
Snippets Groups Projects
Commit 24165e16 authored by Tom Fischer's avatar Tom Fischer
Browse files

[file SimpleTestsMatrixTests/MatMult.cpp]

- added copyright notice
- output machine name running the program

[file SimpleTestsMatrixTests/MatVecMultNDPerm.cpp]
- added copyright notice
parent 8d9ef169
No related branches found
No related tags found
No related merge requests found
/** /**
* MatMult.cpp * Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.net)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.net/LICENSE.txt
*
* \file MatMult.cpp
* *
* Created on 2012-01-03 by Thomas Fischer * Created on 2012-01-03 by Thomas Fischer
*/ */
...@@ -23,6 +28,10 @@ ...@@ -23,6 +28,10 @@
// BaseLib/tclap // BaseLib/tclap
#include "tclap/CmdLine.h" #include "tclap/CmdLine.h"
#ifdef UNIX
#include <sys/unistd.h>
#endif
#ifdef OGS_BUILD_INFO #ifdef OGS_BUILD_INFO
#include "BuildInfo.h" #include "BuildInfo.h"
#endif #endif
...@@ -96,7 +105,14 @@ int main(int argc, char *argv[]) ...@@ -96,7 +105,14 @@ int main(int argc, char *argv[])
} else { } else {
INFO("CXX_FLAGS: %s %s", CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG); INFO("CXX_FLAGS: %s %s", CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG);
} }
INFO("hostname: %s", HOSTNAME); #endif
#ifdef UNIX
const int max_host_name_len (255);
char *hostname(new char[max_host_name_len]);
if (gethostname(hostname, max_host_name_len) == 0)
INFO("hostname: %s", hostname);
delete [] host_name_len;
#endif #endif
// *** reading matrix in crs format from file // *** reading matrix in crs format from file
......
/** /**
* MatVecMultNDPerm.cpp * Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.net)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.net/LICENSE.txt
*
* @file MatVecMultNDPerm.cpp
* *
* Created on 2012-01-03 by Thomas Fischer * Created on 2012-01-03 by Thomas Fischer
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment