Sandia Home Sandia Home
Main Page | Publications | Downloads | Configuration | Running the Code | Solver Parameters | FAQ | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cex_executor.hpp

Go to the documentation of this file.
00001 // $Id: cex_executor.hpp,v 1.1 2006/06/30 19:14:31 tgkolda Exp $ 
00002 // $Source: /space/CVS-Acro/acro/packages/appspack/appspack/example-custom-executor/cex_executor.hpp,v $ 
00015 #include "APPSPACK_Executor_Interface.hpp" // Abstract interface for class
00016 
00018 
00021 class CustomExecutor : public APPSPACK::Executor::Interface
00022 {
00023 
00024 public:
00025 
00027   CustomExecutor(int n_in, int nprocs_in);
00029   ~CustomExecutor();
00030 
00032   bool isWaiting() const;
00033 
00035   bool spawn(const APPSPACK::Vector& x_in, int tag_in);
00036 
00046   int recv(int& tag_out, APPSPACK::Vector& f_out, string& msg_out);
00047 
00049 
00050   void print() const;
00051 
00052 private:
00053 
00055   int n;                        
00056 
00059   double* x;                    
00060 
00063   int nprocs;                   
00064 
00068  vector<int> status;    
00069 
00070 };

 

© Sandia Corporation | Site Contact | Privacy and Security

Generated on Fri Feb 16 10:33:35 2007 for APPSPACK 5.0.1 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2002