Skip to content

Commit

Permalink
Add code formatting
Browse files Browse the repository at this point in the history
Mysterious sequel format update
  • Loading branch information
philip-davis committed Dec 15, 2020
1 parent 66c4514 commit 399de5b
Show file tree
Hide file tree
Showing 17 changed files with 2,695 additions and 2,478 deletions.
6 changes: 6 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Language: Cpp
BasedOnStyle: LLVM
BreakBeforeBraces: Linux
IndentWidth: 4
ContinuationIndentWidth: 4
SpaceBeforeParens: Never
33 changes: 25 additions & 8 deletions bindings/fortran/dspaces_f2c.c
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#include <dspaces.h>
#include <FC.h>
#include <dspaces.h>

#if defined(__cplusplus)
extern "C" {
#endif

void FC_GLOBAL(dspaces_init_f2c, DSPACES_INIT_F2C)(int *rank, dspaces_client_t *client, int *ierr)
void FC_GLOBAL(dspaces_init_f2c,
DSPACES_INIT_F2C)(int *rank, dspaces_client_t *client, int *ierr)
{
*ierr = dspaces_init(*rank, client);
}

void FC_GLOBAL(dspaces_fini_f2c, DSPACES_FINI_F2C)(dspaces_client_t *client, int *ierr)
void FC_GLOBAL(dspaces_fini_f2c, DSPACES_FINI_F2C)(dspaces_client_t *client,
int *ierr)
{
*ierr = dspaces_fini(*client);
}
Expand All @@ -20,19 +22,34 @@ void FC_GLOBAL(dspaces_kill_f2c, DSPACES_KILL_F2C)(dspaces_client_t *client)
dspaces_kill(*client);
}

void FC_GLOBAL(dspaces_get_f2c, DSPACES_GET_F2C)(dspaces_client_t *client, const char *name, uint32_t *version, uint32_t *size, uint32_t *ndim, uint64_t *lb, uint64_t *ub, uint32_t *data, int *timeout, int *ierr)
void FC_GLOBAL(dspaces_get_f2c,
DSPACES_GET_F2C)(dspaces_client_t *client, const char *name,
uint32_t *version, uint32_t *size,
uint32_t *ndim, uint64_t *lb, uint64_t *ub,
uint32_t *data, int *timeout, int *ierr)
{
*ierr = dspaces_get(*client, name, *version, *size, *ndim, lb, ub, data, *timeout);
*ierr = dspaces_get(*client, name, *version, *size, *ndim, lb, ub, data,
*timeout);
}

void FC_GLOBAL(dspaces_put_f2c, DSPACES_PUT_F2C)(dspaces_client_t *client, const char *name, uint32_t *version, uint32_t *size, uint32_t *ndim, uint64_t *lb, uint64_t *ub, float *data, int *ierr)
void FC_GLOBAL(dspaces_put_f2c,
DSPACES_PUT_F2C)(dspaces_client_t *client, const char *name,
uint32_t *version, uint32_t *size,
uint32_t *ndim, uint64_t *lb, uint64_t *ub,
float *data, int *ierr)
{
*ierr = dspaces_put(*client, name, *version, *size, *ndim, lb, ub, data);
}

void FC_GLOBAL(dspaces_put_local_f2c, DSPACES_PUT_LOCAL_F2C)(dspaces_client_t *client, const char *name, uint32_t *version, uint32_t *size, uint32_t *ndim, uint64_t *lb, uint64_t *ub, float *data, int *ierr)
void FC_GLOBAL(dspaces_put_local_f2c,
DSPACES_PUT_LOCAL_F2C)(dspaces_client_t *client,
const char *name, uint32_t *version,
uint32_t *size, uint32_t *ndim,
uint64_t *lb, uint64_t *ub, float *data,
int *ierr)
{
*ierr = dspaces_put_local(*client, name, *version, *size, *ndim, lb, ub, data);
*ierr =
dspaces_put_local(*client, name, *version, *size, *ndim, lb, ub, data);
}

#if defined(__cplusplus)
Expand Down
Loading

0 comments on commit 399de5b

Please sign in to comment.