-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from ludwig-cf/feature-lb-halo
Add field halo switch for lc droplet
- Loading branch information
Showing
267 changed files
with
951 additions
and
2,500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2009-2021 The University of Edinburgh | ||
* (c) 2009-2022 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -322,7 +322,7 @@ __host__ int beris_edw_update_host(beris_edw_t * be, fe_t * fe, field_t * fq, | |
double gamma; | ||
|
||
double chi[NQAB], chi_qab[3][3]; | ||
double tmatrix[3][3][NQAB] = {}; | ||
double tmatrix[3][3][NQAB] = {0}; | ||
double var = 0.0; | ||
|
||
const double dt = 1.0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2012-2021 The University of Edinburgh | ||
* (c) 2012-2022 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Oliver Henrich ([email protected]) | ||
|
@@ -64,7 +64,7 @@ int blue_phase_O8M_init(cs_t * cs, fe_lc_param_t * param, field_t * fq, | |
double root2; | ||
double q0; | ||
double amplitude0; | ||
rotation_t rot = {}; | ||
rotation_t rot = {0}; | ||
|
||
assert(cs); | ||
assert(fq); | ||
|
@@ -82,7 +82,7 @@ int blue_phase_O8M_init(cs_t * cs, fe_lc_param_t * param, field_t * fq, | |
/* So we add a sign here. */ | ||
|
||
{ | ||
double angles[3] = {}; /* radians */ | ||
double angles[3] = {0}; /* radians */ | ||
PI_DOUBLE(pi); | ||
|
||
angles[0] = -1.0*pi*euler_angles[0]/180.0; | ||
|
@@ -98,7 +98,7 @@ int blue_phase_O8M_init(cs_t * cs, fe_lc_param_t * param, field_t * fq, | |
double y = noffset[Y] + jc; | ||
for (int kc = 1; kc <= nlocal[Z]; kc++) { | ||
double z = noffset[Z] + kc; | ||
double r[3] = {}; | ||
double r[3] = {0}; | ||
|
||
/* Rotate around the centre */ | ||
r[X] = x - 0.5*ntotal[X]; | ||
|
@@ -119,7 +119,7 @@ int blue_phase_O8M_init(cs_t * cs, fe_lc_param_t * param, field_t * fq, | |
double sinx = sin(root2*q0*r[X]); | ||
double siny = sin(root2*q0*r[Y]); | ||
double sinz = sin(root2*q0*r[Z]); | ||
double q[3][3] = {}; | ||
double q[3][3] = {0}; | ||
|
||
q[X][X] = amplitude0*( -2.0*cosy*sinz + sinx*cosz + cosx*siny); | ||
q[X][Y] = amplitude0*(root2*cosy*cosz + root2*sinx*sinz - sinx*cosy); | ||
|
@@ -159,7 +159,7 @@ int blue_phase_O2_init(cs_t * cs, fe_lc_param_t * param, field_t * fq, | |
|
||
double q0; | ||
double amplitude0; | ||
rotation_t rot = {}; | ||
rotation_t rot = {0}; | ||
|
||
assert(cs); | ||
assert(fq); | ||
|
@@ -176,7 +176,7 @@ int blue_phase_O2_init(cs_t * cs, fe_lc_param_t * param, field_t * fq, | |
/* Hence the factor of -1.0 below. */ | ||
|
||
{ | ||
double angles[3] = {}; /* radians */ | ||
double angles[3] = {0}; /* radians */ | ||
PI_DOUBLE(pi); | ||
|
||
angles[0] = -1.0*pi*euler_angles[0]/180.0; | ||
|
@@ -192,7 +192,7 @@ int blue_phase_O2_init(cs_t * cs, fe_lc_param_t * param, field_t * fq, | |
double y = noffset[Y] + jc; | ||
for (int kc = 1; kc <= nlocal[Z]; kc++) { | ||
double z = noffset[Z] + kc; | ||
double r[3] = {}; | ||
double r[3] = {0}; | ||
|
||
r[X] = x - 0.5*ntotal[X]; | ||
r[Y] = y - 0.5*ntotal[Y]; | ||
|
@@ -212,7 +212,7 @@ int blue_phase_O2_init(cs_t * cs, fe_lc_param_t * param, field_t * fq, | |
double sinx = sin(2.0*q0*r[X]); | ||
double siny = sin(2.0*q0*r[Y]); | ||
double sinz = sin(2.0*q0*r[Z]); | ||
double q[3][3] = {}; | ||
double q[3][3] = {0}; | ||
|
||
q[X][X] = amplitude0*(cosz - cosy); | ||
q[X][Y] = amplitude0*sinz; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2009-2021 The University of Edinburgh | ||
* (c) 2009-2022 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -72,7 +72,7 @@ __host__ int blue_phase_init_rt(pe_t * pe, rt_t *rt, | |
pe_info(pe, "Blue phase free energy selected.\n"); | ||
|
||
{ | ||
char description[BUFSIZ] = {}; | ||
char description[BUFSIZ] = {0}; | ||
rt_string_parameter(rt, "free_energy", description, BUFSIZ); | ||
fe_is_lc_droplet = (strcmp(description, "lc_droplet") == 0); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2021 The University of Edinburgh | ||
* (c) 2021-2022 The University of Edinburgh | ||
* | ||
* Contributions: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -59,7 +59,7 @@ __global__ void cahn_stats_min_kernel(kernel_ctxt_t * ktx, field_t * phi, | |
__host__ int cahn_hilliard_stats_time0(phi_ch_t * pch, field_t * phi, | ||
map_t * map) { | ||
|
||
phi_stats_t stats = {}; | ||
phi_stats_t stats = {0}; | ||
MPI_Comm comm = MPI_COMM_NULL; | ||
|
||
assert(pch); | ||
|
@@ -83,8 +83,8 @@ __host__ int cahn_hilliard_stats_time0(phi_ch_t * pch, field_t * phi, | |
|
||
__host__ int cahn_hilliard_stats(phi_ch_t * pch, field_t * phi, map_t * map) { | ||
|
||
phi_stats_t stats = {.sum1 = {}, | ||
.sum2 = {}, | ||
phi_stats_t stats = {.sum1 = {0}, | ||
.sum2 = {0}, | ||
.sum = 0.0, | ||
.var = 0.0, | ||
.min = +FLT_MAX, | ||
|
@@ -123,7 +123,7 @@ __host__ int cahn_hilliard_stats(phi_ch_t * pch, field_t * phi, map_t * map) { | |
__host__ int cahn_stats_reduce(phi_ch_t * pch, field_t * phi, | ||
map_t * map, phi_stats_t * stats, | ||
int root, MPI_Comm comm) { | ||
phi_stats_t local = {}; | ||
phi_stats_t local = {0}; | ||
phi_stats_t * stats_d = NULL; | ||
|
||
int nlocal[3]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2010-2021 The University of Edinburgh | ||
* (c) 2010-2022 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -429,7 +429,7 @@ int colloid_io_write_buffer_binary(FILE * fp, int nc, colloid_state_t * buf) { | |
int colloid_io_read(colloid_io_t * cio, const char * filename) { | ||
|
||
int ngroup; | ||
char filename_io[FILENAME_MAX] = {}; | ||
char filename_io[FILENAME_MAX] = {0}; | ||
FILE * fp_state; | ||
|
||
assert(cio->f_header_read); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* Edinburgh Soft Matter and Statistical Phyiscs Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2021 The University of Edinburgh | ||
* (c) 2021-2022 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -109,7 +109,7 @@ int compiler_id(compiler_info_t * compiler) { | |
compiler->major = __GNUC__; | ||
compiler->minor = __GNUC_MINOR__; | ||
compiler->patchlevel = __GNUC_PATCHLEVEL__; | ||
strncpy(compiler->version, __VERSION__, 1 + strnlen(__VERSION__, BUFSIZ-1)); | ||
strncpy(compiler->version, __VERSION__, 1 + strlen(__VERSION__)); | ||
sprintf(compiler->name, "%s", "Gnu"); | ||
ierr = 0; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.