-
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 #303 from ludwig-cf/fix-issue-302
Fix issue 302
- Loading branch information
Showing
11 changed files
with
67 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2022 The University of Edinburgh | ||
* (c) 2022-2024 The University of Edinburgh | ||
* | ||
* Kevin Stratford ([email protected]) | ||
* | ||
|
@@ -274,6 +274,7 @@ int io_impl_mpio_write_end(io_impl_mpio_t * io) { | |
assert(io); | ||
|
||
MPI_File_write_all_end(io->fh, io->super.aggr->buf, &io->status); | ||
MPI_File_close(&io->fh); | ||
|
||
return 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2011-2023 The University of Edinburgh | ||
* (c) 2011-2024 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -150,10 +150,17 @@ __host__ int wall_free(wall_t * wall) { | |
|
||
cs_free(wall->cs); | ||
free(wall->param); | ||
|
||
/* slip quantities */ | ||
if (wall->linkk) free(wall->linkk); | ||
if (wall->linkq) free(wall->linkq); | ||
if (wall->links) free(wall->links); | ||
|
||
if (wall->linki) free(wall->linki); | ||
if (wall->linkj) free(wall->linkj); | ||
if (wall->linkp) free(wall->linkp); | ||
if (wall->linku) free(wall->linku); | ||
|
||
free(wall); | ||
|
||
return 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* Edinburgh Soft Matter and Statistical Phsyics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2014-2023 The University of Edinburgh | ||
* (c) 2014-2024 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -183,6 +183,7 @@ int do_test2(pe_t * pe, cs_t * cs, physics_t * phys) { | |
assert(cs); | ||
assert(phys); | ||
|
||
/* We need a slightly better way to construct nk /= 2 case */ | ||
{ | ||
int nhalo = 0; | ||
cs_nhalo(cs, &nhalo); | ||
|
@@ -194,6 +195,7 @@ int do_test2(pe_t * pe, cs_t * cs, physics_t * phys) { | |
opts.valency[0] = valency[0]; | ||
opts.valency[1] = valency[1]; | ||
opts.valency[2] = valency[2]; | ||
opts.rho = field_options_ndata_nhalo(3, nhalo); | ||
psi_create(pe, cs, &opts, &psi); | ||
} | ||
} | ||
|
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) 2013-2023 The University of Edinburgh | ||
* (c) 2013-2024 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -145,6 +145,8 @@ static int do_test1(pe_t * pe) { | |
/* Finish. */ | ||
|
||
fe_es_free(fe); | ||
fe_symm_free(fe_symm); | ||
fe_electro_free(fe_elec); | ||
field_grad_free(dphi); | ||
field_free(phi); | ||
psi_free(&psi); | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2021-2022 The University of Edinburgh | ||
* (c) 2021-2024 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -82,6 +82,8 @@ __host__ int test_lb_bc_outflow_rhou_create(pe_t * pe, cs_t * cs) { | |
assert(outflow->linki); | ||
assert(outflow->linkj); | ||
|
||
lb_bc_outflow_rhou_free(outflow); | ||
|
||
return 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Edinburgh Soft Matter and Statistical Physics Group and | ||
* Edinburgh Parallel Computing Centre | ||
* | ||
* (c) 2023 The University of Edinburgh | ||
* (c) 2023-2024 The University of Edinburgh | ||
* | ||
* Kevin Stratford ([email protected]) | ||
* | ||
|
@@ -292,6 +292,8 @@ int test_psi_solver_options_from_json(void) { | |
assert(fabs(pso.abstol - 0.02) < DBL_EPSILON); | ||
} | ||
|
||
cJSON_Delete(json); | ||
|
||
return ifail; | ||
} | ||
|
||
|
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) 2012-2023 The University of Edinburgh | ||
* (c) 2012-2024 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -96,6 +96,9 @@ int test_psi_solver_sor_create(pe_t * pe) { | |
assert(sor == NULL); | ||
} | ||
|
||
psi_free(&psi); | ||
cs_free(cs); | ||
|
||
return ifail; | ||
} | ||
|
||
|
@@ -192,6 +195,9 @@ int test_psi_solver_sor_var_epsilon_create(pe_t * pe) { | |
assert(sor == NULL); | ||
} | ||
|
||
psi_free(&psi); | ||
cs_free(cs); | ||
|
||
return ifail; | ||
} | ||
|
||
|