Commit ea6d1f13 authored by Marian Piatkowski's avatar Marian Piatkowski

additional preparations

parent 977416f4
Pipeline #15637 failed with stage
in 4 minutes and 13 seconds
......@@ -120,7 +120,7 @@ int NS_DIM_PREFIX mgpathes_set; /* pathes used in ug *
static FILE *stream; /* file */
static char buffer[MGIO_BUFFERSIZE]; /* general purpose buffer */
static int intList[MGIO_INTSIZE]; /* general purpose integer list */
static double doubleList[MGIO_DOUBLESIZE]; /* general purpose double list*/
static DOUBLE doubleList[MGIO_DOUBLESIZE]; /* general purpose double list*/
static int nparfiles; /* nb of parallel files */
/* local storage of general elements */
......@@ -871,7 +871,7 @@ int NS_DIM_PREFIX Read_CG_Points (int n, MGIO_CG_POINT *cg_point)
for(i=0; i<n; i++)
{
if (Bio_Read_mdouble(MGIO_DIM,doubleList)) return (1);
if (Bio_Read_mdouble(MGIO_DIM,(double*)doubleList)) return (1);
cgp = MGIO_CG_POINT_PS(cg_point,i);
for(j=0; j<MGIO_DIM; j++)
cgp->position[j] = doubleList[j];
......@@ -919,7 +919,7 @@ int NS_DIM_PREFIX Write_CG_Points (int n, MGIO_CG_POINT *cg_point)
cgp = MGIO_CG_POINT_PS(cg_point,i);
for(j=0; j<MGIO_DIM; j++)
doubleList[j] = cgp->position[j];
if (Bio_Write_mdouble(MGIO_DIM,doubleList)) return (1);
if (Bio_Write_mdouble(MGIO_DIM,(double*)doubleList)) return (1);
if (MGIO_PARFILE)
{
intList[0] = cgp->level;
......@@ -1247,7 +1247,7 @@ int NS_DIM_PREFIX Read_Refinement (MGIO_REFINEMENT *pr, MGIO_RR_RULE *rr_rules)
pr->mvcorner[j].id = intList[s++];
if (pr->nmoved>0)
{
if (Bio_Read_mdouble(MGIO_DIM*pr->nmoved,doubleList)) assert(0); /*return (1);*/
if (Bio_Read_mdouble(MGIO_DIM*pr->nmoved,(double*)doubleList)) assert(0); /*return (1);*/
s=0;
for (j=0; j<pr->nmoved; j++)
for (k=0; k<MGIO_DIM; k++)
......@@ -1389,7 +1389,7 @@ int NS_DIM_PREFIX Write_Refinement (MGIO_REFINEMENT *pr, MGIO_RR_RULE *rr_rules)
MGIO_CHECK_INTSIZE(s);
if (Bio_Write_mint(s,intList)) return (1);
MGIO_CHECK_DOUBLESIZE(t);
if (t>0) if (Bio_Write_mdouble(t,doubleList)) return (1);
if (t>0) if (Bio_Write_mdouble(t,(double*)doubleList)) return (1);
if (MGIO_PARFILE)
{
......
......@@ -251,12 +251,12 @@ struct mgio_cg_general {
struct mgio_cg_point_seq {
double position[MGIO_DIM]; /* position of the point */
DOUBLE position[MGIO_DIM]; /* position of the point */
};
struct mgio_cg_point {
double position[MGIO_DIM]; /* position of the point */
DOUBLE position[MGIO_DIM]; /* position of the point */
int level; /* level of creation */
int prio; /* priority */
};
......@@ -264,7 +264,7 @@ struct mgio_cg_point {
struct mgio_movedcorner {
int id; /* local id of moved node */
double position[MGIO_DIM]; /* position of the point */
DOUBLE position[MGIO_DIM]; /* position of the point */
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment