Scippy

UG

Ubiquity Generator framework

scipParaInterruptMsgMonitor.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and software framework */
4 /* UG --- Ubquity Generator Framework */
5 /* */
6 /* Copyright Written by Yuji Shinano <shinano@zib.de>, */
7 /* Copyright (C) 2021 by Zuse Institute Berlin, */
8 /* licensed under LGPL version 3 or later. */
9 /* Commercial licenses are available through <licenses@zib.de> */
10 /* */
11 /* This code is free software; you can redistribute it and/or */
12 /* modify it under the terms of the GNU Lesser General Public License */
13 /* as published by the Free Software Foundation; either version 3 */
14 /* of the License, or (at your option) any later version. */
15 /* */
16 /* This program is distributed in the hope that it will be useful, */
17 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
18 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
19 /* GNU Lesser General Public License for more details. */
20 /* */
21 /* You should have received a copy of the GNU Lesser General Public License */
22 /* along with this program. If not, see <http://www.gnu.org/licenses/>. */
23 /* */
24 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
25 
26 /**@file scipParaInterruptMsgMonitor.h
27  * @brief Interrupt message monitor thread class.
28  * @author Yuji Shinano
29  *
30  *
31  *
32  */
33 
34 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35 
36 
37 #ifndef __SCIP_PARA_INTERRUPT_MSG_MONITOR_H__
38 #define __SCIP_PARA_INTERRUPT_MSG_MONITOR_H__
39 
40 #include "ug/paraDef.h"
41 #include "ug/paraComm.h"
42 // #include "scipParaComm.h"
43 // #include "scipParaSolver.h"
44 
45 namespace ParaSCIP
46 {
47 
48 class ScipParaSolver;
49 
51 {
53  int rank; ///< rank of this Monitor
54 protected:
55  UG::ParaComm *paraComm; ///< ParaCommunicator object
56  ScipParaSolver *scipParaSolver; ///< pointer to ScipParaSolver object
57 public:
58  ScipParaInterruptMsgMonitor() : terminateRequested(false), paraComm(0), scipParaSolver(0)
59  {
60  THROW_LOGICAL_ERROR1("Default constructor of ParaTimeLimitMonitor is called");
61  }
64  ScipParaSolver *inScipParaSolver
65  );
66 
68 
69  void run();
70 
71  void terminate()
72  {
73  terminateRequested = true;
74  scipParaSolver = 0;
75  }
76 };
77 
78 }
79 
80 #endif // __SCIP_PARA_INTERRUPT_MSG_MONITOR_H__
81 
static ScipParaCommTh * comm
Definition: fscip.cpp:73
Defines for UG Framework.
#define THROW_LOGICAL_ERROR1(msg1)
Definition: paraDef.h:52
Base class of communicator for UG Framework.
ScipParaSolver * scipParaSolver
pointer to ScipParaSolver object
UG::ParaComm * paraComm
ParaCommunicator object.
Base class of communicator object.
Definition: paraComm.h:101