refactor phase field init
This commit is contained in:
@@ -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)***************************************
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user