-
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 #339 from ludwig-cf/fix-issue-338
Code quality
- Loading branch information
Showing
22 changed files
with
209 additions
and
81 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
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 |
---|---|---|
|
@@ -8,7 +8,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]) | ||
* | ||
|
@@ -43,7 +43,7 @@ int io_aggregator_create(io_element_t el, cs_limits_t lim, | |
return 0; | ||
|
||
err: | ||
if (newaggr) free(newaggr); | ||
free(newaggr); | ||
return -1; | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -9,7 +9,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]) | ||
* | ||
|
@@ -22,6 +22,8 @@ | |
|
||
enum io_event_record_enum { | ||
IO_EVENT_AGGR = 0, | ||
IO_EVENT_DISAGGR, | ||
IO_EVENT_READ, | ||
IO_EVENT_WRITE, | ||
IO_EVENT_REPORT, | ||
IO_EVENT_MAX | ||
|
@@ -38,6 +40,10 @@ struct io_event_s { | |
|
||
int io_event_record(io_event_t * event, io_event_record_t iorec); | ||
int io_event_report(io_event_t * event, const io_metadata_t * metadata, | ||
const char * name); | ||
const char * name, io_event_record_t iorec); | ||
int io_event_report_read(io_event_t * event, const io_metadata_t * metadata, | ||
const char * name); | ||
int io_event_report_write(io_event_t * event, const io_metadata_t * metadata, | ||
const char * name); | ||
|
||
#endif |
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 |
---|---|---|
|
@@ -58,7 +58,7 @@ int io_metadata_create(cs_t * cs, | |
|
||
err: | ||
|
||
if (meta) free(meta); | ||
free(meta); | ||
return -1; | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,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]) | ||
|
@@ -108,9 +108,9 @@ int lb_model_free(lb_model_t * model) { | |
free(model->ma); | ||
} | ||
|
||
if (model->na) free(model->na); | ||
if (model->cv) free(model->cv); | ||
if (model->wv) free(model->wv); | ||
free(model->na); | ||
free(model->cv); | ||
free(model->wv); | ||
|
||
*model = (lb_model_t) {0}; | ||
|
||
|
Oops, something went wrong.