hello_world.h
Go to the documentation of this file.
1 //LIC// ====================================================================
2 //LIC// This file forms part of oomph-lib, the object-oriented,
3 //LIC// multi-physics finite-element library, available
4 //LIC// at http://www.oomph-lib.org.
5 //LIC//
6 //LIC// Copyright (C) 2006-2022 Matthias Heil and Andrew Hazel
7 //LIC//
8 //LIC// This library is free software; you can redistribute it and/or
9 //LIC// modify it under the terms of the GNU Lesser General Public
10 //LIC// License as published by the Free Software Foundation; either
11 //LIC// version 2.1 of the License, or (at your option) any later version.
12 //LIC//
13 //LIC// This library is distributed in the hope that it will be useful,
14 //LIC// but WITHOUT ANY WARRANTY; without even the implied warranty of
15 //LIC// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 //LIC// Lesser General Public License for more details.
17 //LIC//
18 //LIC// You should have received a copy of the GNU Lesser General Public
19 //LIC// License along with this library; if not, write to the Free Software
20 //LIC// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 //LIC// 02110-1301 USA.
22 //LIC//
23 //LIC// The authors may be contacted at oomph-lib@maths.man.ac.uk.
24 //LIC//
25 //LIC//====================================================================
26 #ifndef OOMPH_JACKS_HELLOWORLD_HEADER
27 #define OOMPH_JACKS_HELLOWORLD_HEADER
28 
29 // Config header generated by autoconfig
30 #ifdef HAVE_CONFIG_H
31  #include <oomph-lib-config.h>
32 #endif
33 
34 // oomph-lib headers
35 #include "../generic/matrices.h"
36 
37 namespace oomph
38 {
39 
40 
41 //=================================================================
43 //=================================================================
45 {
46 
47 public:
48 
49 
52  {
53  // Fiddle around with the object's private data
55  }
56 
59  {
60  oomph_info << "JacksHelloWorld object says: Hello world! "
61  << Some_matrix.nrow() << std::endl;
62 
63  }
64 
66  void say_it_external();
67 
68  private:
69 
72 
73 
74 };
75 
76 }
77 
78 #endif
unsigned long nrow() const
Return the number of rows of the matrix.
Definition: matrices.h:485
void resize(const unsigned long &n)
Definition: matrices.h:498
Hello world class – uses object from generic library.
Definition: hello_world.h:45
void say_it_inline()
Say it inline.
Definition: hello_world.h:58
JacksHelloWorld()
Constructor.
Definition: hello_world.h:51
DenseMatrix< double > Some_matrix
Private full matrix.
Definition: hello_world.h:71
void say_it_external()
Say it externally.
Definition: hello_world.cc:33
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
OomphInfo oomph_info
Definition: oomph_definitions.cc:319