Diana  0.8.3
ParallelEnv_dummy.hpp
00001 /* -----------------------------------------------------------------------------
00002  *  Diana process modelling, simulation and analysis software
00003  *  Copyright (c) 2005, Michael Krasnyk
00004  *  All rights reserved.
00005  *
00006  *  This file is a part of Diana process modelling, simulation and analysis software
00007  *
00008  *  Diana is free software; you can redistribute it and/or modify it
00009  *  under the terms of the GNU General Public License as published
00010  *  by the Free Software Foundation (see accompanying file LICENSE)
00011  * -----------------------------------------------------------------------------
00012  *  $Id$
00013  * -----------------------------------------------------------------------------
00014  *  Description:
00015  */
00016 
00017 
00018 #ifndef __PARALLELENV_H
00019 #define __PARALLELENV_H
00020 
00021 #include "IParallelEnv.hpp"
00022   
00026 class CParallelEnv : virtual public IParallelEnv
00027 {
00028 private:
00029    void PrintErrorMessage( CapeString szMessage )
00030    {
00031       std::cerr << "ERROR - CParallelEnv::"<< szMessage << 
00032       " (this is a sequentually version of Diana)" << std::endl; 
00033    }
00034 
00035 //to do - exception throwing
00036 public:
00037 
00038    void Initialize()
00039    { PrintErrorMessage( "Initialize" ); }
00040 
00041    void ShowInfo()
00042    { PrintErrorMessage( "ShowInfo" ); }
00043 
00044 
00045    CapeLong ProcessID()  throw (Common::Error::ECapeUnknown)
00046    { PrintErrorMessage( "ProcessID" ); }
00047 
00048    CapeLong ProcessesNumber()  throw (Common::Error::ECapeUnknown)
00049    { PrintErrorMessage( "ProcessesNumber" ); }
00050 
00051    void Barrier()
00052    { PrintErrorMessage( "Barrier" ); }
00053 
00054    IDistributedMatrix* CreateDistributedMatrix( CapeLong nRows, CapeLong nCols)
00055    { PrintErrorMessage( "CreateDistributedMatrix" ); }
00056 
00057    IParallelSolver* CreateParallelSolver( const Common::Types::CapeString& 
00058       _szConnectionsFileName )
00059       throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
00060    { PrintErrorMessage( "CreateParallelSolver" ); };
00061 };
00062 
00063 #endif