ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
external_2.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 http://viennashe.sourceforge.net/
11
12 License: MIT (X11), see file LICENSE in the base directory
13=============================================================================== */
14
15#ifdef _MSC_VER //Visual Studio complains about potentially dangerous things, which are perfectly legal in our context
16 #pragma warning( disable : 4355 ) //use of this in member initializer list
17 #pragma warning( disable : 4503 ) //truncated name decoration
18#endif
19
24#include <iostream>
25
26//#define VIENNASHE_HAVE_PARALLEL_SOLVER //automatically set by the build system
27//#define VIENNASHE_HAVE_GPU_SOLVER //automatically set by the build system
28
29#include "viennagrid/mesh/mesh.hpp"
30#include "viennagrid/io/vtk_writer.hpp"
31#include "viennagrid/config/default_configs.hpp"
32
33#include "viennashe/core.hpp"
34
35void other_func();
36
37void other_func()
38{
39 viennagrid::tetrahedral_3d_mesh mesh;
40
41 std::cout << "--- Tetrahedral mesh, 3d ---" << std::endl;
42 std::cout << "Size<0>: " << viennagrid::vertices(mesh).size() << std::endl;
43 std::cout << "Size<1>: " << viennagrid::vertices(mesh).size() << std::endl;
44 std::cout << "Size<2>: " << viennagrid::vertices(mesh).size() << std::endl;
45 std::cout << "Size<3>: " << viennagrid::vertices(mesh).size() << std::endl;
46}
Convenience header, which includes all core functionality available in ViennaSHE.