Ignore:
Timestamp:
Apr 2, 2008, 2:32:58 PM (16 years ago)
Author:
gah
Message:

added global pgapack_abort flag to plugin and abort operation to optimizer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/optimizer/src/pgapack/pgapack/source/pga.c

    r816 r986  
    7171
    7272#include "pgapack.h"
     73#include <setjmp.h>
     74
     75jmp_buf pgapack_jmpbuf;
    7376
    7477/*U****************************************************************************
     
    112115     ndemes = PGAGetNumDemes    (ctx);
    113116
     117    if (setjmp(pgapack_jmpbuf)) {
     118        return;                 /* PGA pack was aborted. */
     119    }
    114120     /**********************************************************************/
    115121     /*              Global model, one island, one deme                    */
    116122     /**********************************************************************/
    117      if     ( (npops == 1) && (ndemes == 1) ) {
    118 
     123     if ( (npops == 1) && (ndemes == 1) ) {
    119124         PGARunGM(ctx, evaluate, comm);
    120125     }
Note: See TracChangeset for help on using the changeset viewer.