ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
external_1.cpp
Go to the documentation of this file.
1/* =======================================================================
2 Copyright (c) 2011-2022, Institute for Microelectronics,
3 Institute for Analysis and Scientific Computing,
4 TU Wien.
5
6 -----------------
7 ViennaSHE - The Vienna Spherical Harmonics Expansion Boltzmann Solver
8 -----------------
9
10 Project Head: Karl Rupp rupp@iue.tuwien.ac.at
11
12 http://viennashe.sourceforge.net/
13
14 License: MIT (X11), see file LICENSE in the base directory
15======================================================================= */
16
17#ifdef _MSC_VER //Visual Studio complains about potentially dangerous things, which are perfectly legal in our context
18 #pragma warning( disable : 4355 ) //use of this in member initializer list
19 #pragma warning( disable : 4503 ) //truncated name decoration
20#endif
21
28//
29// *** System
30//
31#include <iostream>
32
33//#define VIENNASHE_HAVE_PARALLEL_SOLVER //automatically set by the build system
34//#define VIENNASHE_HAVE_GPU_SOLVER //automatically set by the build system
35
36#include "viennagrid/mesh/mesh.hpp"
37#include "viennagrid/io/vtk_writer.hpp"
38#include "viennagrid/config/default_configs.hpp"
39
40
41#include "viennashe/core.hpp"
42
43
44//defined in external_2.cpp
45void other_func();
46
47//
48// -------------------------------------------------------------
49//
50int main()
51{
52 std::cout << "*****************" << std::endl;
53 std::cout << "* Test started! *" << std::endl;
54 std::cout << "*****************" << std::endl;
55
56
57 //doing nothing but instantiating a few types
58 viennagrid::triangular_2d_mesh mesh;
59
60 std::cout << "--- Triangular mesh, 2d ---" << std::endl;
61 std::cout << "Size<0>: " << viennagrid::vertices(mesh).size() << std::endl;
62 std::cout << "Size<1>: " << viennagrid::vertices(mesh).size() << std::endl;
63 std::cout << "Size<2>: " << viennagrid::vertices(mesh).size() << std::endl;
64
65 //this is the external linkage check:
66 other_func();
67
68
69
70 std::cout << "*******************************" << std::endl;
71 std::cout << "* Test finished successfully! *" << std::endl;
72 std::cout << "*******************************" << std::endl;
73
74 return EXIT_SUCCESS;
75}
Convenience header, which includes all core functionality available in ViennaSHE.
int main()
Definition: resistor1d-c.c:108