-
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 #308 from ludwig-cf/fix-issue-284
Removal of old i/o routines
- Loading branch information
Showing
162 changed files
with
4,122 additions
and
4,438 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* | ||
* From an idea appearing in LAMMPS. | ||
* | ||
* (c) 2022 The University of Edinburgh | ||
* (c) 2022-2024 The University of Edinburgh | ||
* | ||
* Kevin Stratford ([email protected]) | ||
* | ||
|
@@ -53,9 +53,14 @@ typedef intmax_t MPI_Offset; | |
|
||
/* Defined constants (see Annex A.2) */ | ||
|
||
/* Return codes */ | ||
/* Return codes (add as required) */ | ||
|
||
enum return_codes {MPI_SUCCESS}; | ||
enum return_codes { | ||
MPI_SUCCESS = 0, /* Success */ | ||
MPI_ERR_FILE, /* Bad file handle */ | ||
MPI_ERR_NO_SUCH_FILE, /* File does not exist */ | ||
MPI_ERR_LASTCODE /* Must be last */ | ||
}; | ||
|
||
/* Assorted constants */ | ||
|
||
|
@@ -152,6 +157,7 @@ enum mpi_order_enum {MPI_ORDER_C, MPI_ORDER_FORTRAN}; | |
|
||
#define MPI_MAX_DATAREP_STRING 128 /* E.g., "native" */ | ||
|
||
|
||
/* Interface */ | ||
|
||
int MPI_Barrier(MPI_Comm comm); | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,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 | ||
* | ||
* Kevin Stratford ([email protected]) | ||
* | ||
|
@@ -1400,7 +1400,7 @@ int MPI_File_open(MPI_Comm comm, const char * filename, int amode, | |
if (fp == NULL) { | ||
printf("MPI_File_open: attempt to open %s mode %s failed\n", filename, | ||
fdmode); | ||
exit(0); | ||
return MPI_ERR_NO_SUCH_FILE; | ||
} | ||
|
||
*fh = mpi_file_handle_retain(mpi_info, fp); | ||
|
@@ -1424,7 +1424,7 @@ int MPI_File_close(MPI_File * fh) { | |
|
||
if (fp == NULL) { | ||
printf("MPI_File_close: invalid file handle\n"); | ||
exit(0); | ||
return MPI_ERR_FILE; | ||
} | ||
else { | ||
fclose(fp); | ||
|
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-2023 The University of Edinburgh | ||
* (c) 2010-2024 The University of Edinburgh | ||
* | ||
* Contributing authors: | ||
* Kevin Stratford ([email protected]) | ||
|
@@ -26,7 +26,6 @@ | |
#include "free_energy.h" | ||
#include "field.h" | ||
#include "field_grad.h" | ||
#include "io_harness.h" | ||
|
||
#include "lc_anchoring.h" | ||
|
||
|
@@ -153,9 +152,9 @@ void fe_lc_str_anti_v(fe_lc_t * fe, int index, double s[3][3][NSIMDVL]); | |
|
||
__host__ __device__ | ||
void fe_lc_compute_h_v(fe_lc_t * fe, | ||
double q[3][3][NSIMDVL], | ||
double q[3][3][NSIMDVL], | ||
double dq[3][3][3][NSIMDVL], | ||
double dsq[3][3][NSIMDVL], | ||
double dsq[3][3][NSIMDVL], | ||
double h[3][3][NSIMDVL]); | ||
__host__ __device__ | ||
void fe_lc_compute_stress_v(fe_lc_t * fe, | ||
|
@@ -185,4 +184,3 @@ __host__ int fe_lc_scalar_ops(double q[3][3], double qs[NQAB]); | |
|
||
|
||
#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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* | ||
* Kevin Stratford ([email protected]) | ||
* | ||
* (c) 2009-2020 The University of Edinburgh | ||
* (c) 2009-2024 The University of Edinburgh | ||
* | ||
*****************************************************************************/ | ||
|
||
|
@@ -30,6 +30,7 @@ typedef struct beris_edw_param_s beris_edw_param_t; | |
struct beris_edw_param_s { | ||
double xi; /* Effective aspect ratio (from relevant free energy) */ | ||
double gamma; /* Rotational diffusion constant */ | ||
int noise; /* Noise switch */ | ||
double var; /* Noise variance */ | ||
|
||
double tmatrix[3][3][NQAB]; /* Constant noise tensor */ | ||
|
Oops, something went wrong.