Scippy

UG

Ubiquity Generator framework

ParaInstance Class Referenceabstract

class for instance data More...

#include <paraInstance.h>

Inheritance diagram for ParaInstance:
BbParaInstance ScipParaInstance ScipParaInstance ScipParaInstanceMpi ScipParaInstanceTh ScipParaInstanceMpi ScipParaInstanceTh

Public Member Functions

 ParaInstance ()
 DO NOT HAVE DATA MEMBER!! More...
 
virtual ~ParaInstance ()
 destructor More...
 
virtual const char * getProbName ()=0
 get problem name More...
 
virtual int bcast (ParaComm *comm, int rank, int method)=0
 broadcast function to all solvers More...
 
virtual const std::string toString ()=0
 Stringfy this object. More...
 

Detailed Description

class for instance data

This class should NOT have any data member.

Definition at line 50 of file paraInstance.h.

Constructor & Destructor Documentation

◆ ParaInstance()

DO NOT HAVE DATA MEMBER!!

default constructor

Definition at line 62 of file paraInstance.h.

◆ ~ParaInstance()

virtual ~ParaInstance ( )
virtual

destructor

Definition at line 70 of file paraInstance.h.

Member Function Documentation

◆ bcast()

virtual int bcast ( ParaComm comm,
int  rank,
int  method 
)
pure virtual

broadcast function to all solvers

Returns
always expected be 1
Parameters
commcommunicator used
rankroot rank
methodmethod for the transferring

Implemented in ScipParaInstanceMpi, and ScipParaInstanceTh.

Referenced by main(), ScipParaSolver::reinitialize(), BbParaLoadCoordinator::restartRacing(), and runSolverThread().

◆ getProbName()

◆ toString()

virtual const std::string toString ( )
pure virtual

Stringfy this object.

Returns
object as string

Implemented in ScipParaInstance, and ScipParaInstance.