The pure C test works again.

This commit is contained in:
jpekkila
2019-07-23 21:00:00 +03:00
parent f322bc8b37
commit f0d1fba55c
4 changed files with 9 additions and 7 deletions

2
src/ctest/CMakeLists.txt Normal file
View File

@@ -0,0 +1,2 @@
add_executable(ctest main.c)
target_link_libraries(ctest PRIVATE astaroth_core m)

18
src/ctest/main.c Normal file
View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
#include "astaroth.h"
int
main(void)
{
AcMeshInfo info = {
.int_params[AC_nx] = 128,
.int_params[AC_ny] = 64,
.int_params[AC_nz] = 32,
};
acInit(info);
acIntegrate(0.1f);
acQuit();
return EXIT_SUCCESS;
}