grid: Fix array parameter mismatches

This commit is contained in:
Ole Schütt 2021-08-11 22:27:05 +02:00 committed by Ole Schütt
parent c9eea92839
commit ef60d10ea2
2 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ void exp_ij(const double alpha, const int offset_i, const int imin,
void calculate_non_orthorombic_corrections_tensor(
const double mu_mean, const double *r_ab, const double basis[3][3],
const int *const xmin, const int *const xmax, bool *plane,
const int *const xmin, const int *const xmax, bool plane[3],
tensor *const Exp) {
// zx, zy, yx
const int n[3][2] = {{0, 2}, {0, 1}, {1, 2}};
@ -253,7 +253,7 @@ void calculate_non_orthorombic_corrections_tensor_blocked(
/* free(exp_tmp.data); */
}
void apply_non_orthorombic_corrections(const bool *restrict plane,
void apply_non_orthorombic_corrections(const bool plane[restrict 3],
const tensor *const Exp,
tensor *const cube) {
// Well we should never call non orthorombic corrections if everything is

View file

@ -108,7 +108,7 @@ extern void return_cube_position(const int *lb_grid, const int *cube_center,
const int *lower_boundaries_cube,
const int *period, int *const position);
extern void verify_orthogonality(const double dh[3][3], bool *orthogonal);
extern void verify_orthogonality(const double dh[3][3], bool orthogonal[3]);
extern int compute_cube_properties(const bool ortho, const double radius,
const double dh[3][3],