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


Detailed Description

Example of worker for custom executor.

This file provides the routine for the worker. The worker is responsible for the following:

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

Definition in file cex_worker.cpp.

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

Include dependency graph for cex_worker.cpp:

Include dependency graph

Go to the source code of this file.

Functions

bool constraint (int n, double *x)
 Return true if the constraint is violated.
double feval (int n, double *x)
 Function evaluation.
void worker ()
 Worker.


Function Documentation

bool constraint int  n,
double *  x
 

Return true if the constraint is violated.

Definition at line 24 of file cex_worker.cpp.

Referenced by main(), and worker().

double feval int  n,
double *  x
 

Function evaluation.

Definition at line 35 of file cex_worker.cpp.

Referenced by main(), and worker().

void worker  ) 
 

Worker.

Definition at line 45 of file cex_worker.cpp.

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

Referenced by main().

 

© 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