refactor phase field init

This commit is contained in:
James E McClure
2018-04-30 15:20:21 -04:00
parent b73bcf21f0
commit 4f525e300b
3 changed files with 5 additions and 4 deletions

View File

@@ -397,7 +397,7 @@ int main(int argc, char **argv)
// Initialize the phase field and variables // Initialize the phase field and variables
ScaLBL_D3Q19_Init(fq, Np); ScaLBL_D3Q19_Init(fq, Np);
if (rank==0) printf ("Initializing phase field \n"); if (rank==0) printf ("Initializing phase field \n");
ScaLBL_PhaseField_Init(dvcMap, Phi, Den, Aq, Bq, Np); ScaLBL_PhaseField_Init(dvcMap, Phi, Den, Aq, Bq, 0, ScaLBL_Comm.last_interior, Np);
//************ MAIN ITERATION LOOP (timing communications)*************************************** //************ MAIN ITERATION LOOP (timing communications)***************************************

View File

@@ -280,7 +280,7 @@ int main(int argc, char **argv)
// Initialize the phase field and variables // Initialize the phase field and variables
ScaLBL_D3Q19_Init(fq, Np); ScaLBL_D3Q19_Init(fq, Np);
if (rank==0) printf ("Initializing phase field \n"); if (rank==0) printf ("Initializing phase field \n");
ScaLBL_PhaseField_Init(dvcMap, Phi, Den, Aq, Bq, Np); ScaLBL_PhaseField_Init(dvcMap, Phi, Den, Aq, Bq, 0, ScaLBL_Comm.last_interior, Np);
// *************ODD TIMESTEP************* // *************ODD TIMESTEP*************
// Compute the Phase indicator field // Compute the Phase indicator field
@@ -419,7 +419,7 @@ int main(int argc, char **argv)
// Initialize the phase field and variables // Initialize the phase field and variables
ScaLBL_D3Q19_Init(fq, Np); ScaLBL_D3Q19_Init(fq, Np);
if (rank==0) printf ("Initializing phase field \n"); if (rank==0) printf ("Initializing phase field \n");
ScaLBL_PhaseField_Init(dvcMap, Phi, Den, Aq, Bq, Np); ScaLBL_PhaseField_Init(dvcMap, Phi, Den, Aq, Bq, 0, ScaLBL_Comm.last_interior, Np);
// *************ODD TIMESTEP************* // *************ODD TIMESTEP*************
// Compute the Phase indicator field // Compute the Phase indicator field

View File

@@ -321,7 +321,8 @@ int main(int argc, char **argv)
if (rank==0) printf ("Initializing distributions \n"); if (rank==0) printf ("Initializing distributions \n");
// Initialize the phase field and variables // Initialize the phase field and variables
ScaLBL_D3Q19_Init(fq, Np); ScaLBL_PhaseField_Init(dvcMap, Phi, Den, Aq, Bq, 0, ScaLBL_Comm.last_interior, Np);
if (rank==0) printf ("Initializing phase field \n"); if (rank==0) printf ("Initializing phase field \n");
ScaLBL_PhaseField_Init(dvcMap, Phi, Den, Aq, Bq, Np); ScaLBL_PhaseField_Init(dvcMap, Phi, Den, Aq, Bq, Np);
if (Dm.kproc==0){ if (Dm.kproc==0){