Overhaul to the user-defined parameters done: All logical switches, parameters and vertex buffer handles are now defined in a single header file (the default location is acc/mhd_solver/stencil_defines.h). This header is used when preprocessing the DSL sources and is linked to the include/ directory when calling scripts/compile_acc.sh. astaroth.h is now used for configuring internal stuff only and should not be modified by users

This commit is contained in:
jpekkila
2019-07-03 19:01:16 +03:00
parent 6907d74ea3
commit 7abb959828
5 changed files with 163 additions and 144 deletions

View File

@@ -31,7 +31,8 @@
#include "math_utils.h" // sum for reductions
#include "standalone/config_loader.h" // update_config
const char* intparam_names[] = {AC_FOR_INT_PARAM_TYPES(AC_GEN_STR)};
const char* intparam_names[] = {AC_FOR_BUILTIN_INT_PARAM_TYPES(AC_GEN_STR)
AC_FOR_USER_INT_PARAM_TYPES(AC_GEN_STR)};
const char* realparam_names[] = {AC_FOR_REAL_PARAM_TYPES(AC_GEN_STR)};
const char* vtxbuf_names[] = {AC_FOR_VTXBUF_HANDLES(AC_GEN_STR)};
@@ -213,7 +214,7 @@ acLoadWithOffset(const AcMesh& host_mesh, const int3& src, const int num_vertice
// printf("\n");
copyMeshToDevice(devices[i], STREAM_PRIMARY, host_mesh, da, da_local, copy_cells);
}
printf("\n");
// printf("\n");
}
return AC_SUCCESS;
}
@@ -249,7 +250,7 @@ acStoreWithOffset(const int3& src, const int num_vertices, AcMesh* host_mesh)
// printf("\n");
copyMeshToHost(devices[i], STREAM_PRIMARY, da_local, da, copy_cells, host_mesh);
}
printf("\n");
// printf("\n");
}
acBoundcondStep(); // TODO note: this is not the most efficient way to do things
return AC_SUCCESS;