Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

shmem.cc File Reference

#include "rcs_defs.hh"
#include <stdio.h>
#include <stddef.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include "rcs_prnt.hh"
#include "cms.hh"
#include "shmem.hh"
#include "shm.hh"
#include "memsem.hh"
#include "timer.hh"
#include "autokey.h"

Include dependency graph for shmem.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define MODE   (0777)

Functions

int not_zero (volatile double x)

Variables

double last_non_zero_x
double last_x


Define Documentation

#define MODE   (0777)
 

Definition at line 73 of file shmem.cc.


Function Documentation

int not_zero volatile double    x [static]
 

Definition at line 86 of file shmem.cc.

Referenced by SHMEM::main_access().

00087 {
00088   last_x = x;
00089   if (x < -1E-6 && last_x < -1E-6)
00090     {
00091       last_non_zero_x = x;
00092       return 1;
00093     }
00094   if (x > 1E-6 && last_x > 1E-6)
00095     {
00096       last_non_zero_x = x;
00097       return 1;
00098     }
00099   return 0;
00100 }


Variable Documentation

double last_non_zero_x [static]
 

Definition at line 82 of file shmem.cc.

double last_x [static]
 

Definition at line 83 of file shmem.cc.


Generated on Sun Dec 2 15:57:56 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001