refactor spheres

This commit is contained in:
James E McClure 2018-05-16 10:19:31 -04:00
parent 74b6a40925
commit a45524acb0
3 changed files with 10 additions and 5 deletions

View File

@ -15,9 +15,6 @@
#include "common/MPI_Helpers.h"
#include "common/Communication.h"
// Inline function to read line without a return argument
static inline void fgetl( char * str, int num, FILE * stream )
{
@ -25,8 +22,6 @@ static inline void fgetl( char * str, int num, FILE * stream )
if ( 0 ) {char *temp = (char *)&ptr; temp++;}
}
/********************************************************
* Constructors/Destructor *
********************************************************/

View File

@ -14,6 +14,14 @@
#include "common/Database.h"
#include "common/SpherePack.h"
// Inline function to read line without a return argument
static inline void fgetl( char * str, int num, FILE * stream )
{
char* ptr = fgets( str, num, stream );
if ( 0 ) {char *temp = (char *)&ptr; temp++;}
}
void WriteLocalSolidID(char *FILENAME, char *ID, int N)
{
char value;

View File

@ -33,3 +33,5 @@ void AssignLocalSolidID(char *ID, int nspheres, double *List_cx, double *List_cy
void SignedDistance(double *Distance, int nspheres, double *List_cx, double *List_cy, double *List_cz, double *List_rad,
double Lx, double Ly, double Lz, int Nx, int Ny, int Nz,
int iproc, int jproc, int kproc, int nprocx, int nprocy, int nprocz);
#endif