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_main.cpp File Reference


Detailed Description

Main executable for custom executor example.

This is the main file. It starts MPI, appropriately calls the master and worker tasks, and terminates MPI when everything is finished.

See also:
Customizing the APPSPACK::Executor to change the way function evaluations are distributed in parallel

Definition in file cex_main.cpp.

#include <iostream>
#include "mpi.h"

Include dependency graph for cex_main.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void master (int argc, char *argv[], int nprocs)
 master
void worker ()
 Worker.
int main (int argc, char *argv[])
 Main.


Function Documentation

void master int  argc,
char *  argv[],
int  nprocs
 

master

Definition at line 44 of file cex_master.cpp.

References QUIT, APPSPACK::Parameter::List::setParameter(), SIZE, and APPSPACK::Parameter::List::sublist().

Referenced by main().

void worker  ) 
 

Worker.

Definition at line 45 of file cex_worker.cpp.

References CODE, constraint(), feval(), FVAL, SIZE, XTAG, and XVEC.

Referenced by main().

int main int  argc,
char *  argv[]
 

Main.

Definition at line 33 of file cex_main.cpp.

References master(), and worker().

 

© 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