Commit 9e0b6851 authored by ccfd's avatar ccfd
Browse files

Modify a bug of boundary scheme

parent acb9b19b
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -7,7 +7,7 @@
#include "utility.h"
#include "OCFD_mpi.h"
#include "io_warp.h"
__device__ __constant__ unsigned int ny_d,ny_2lap_d;
//---------------------------------------------------
#ifdef __cplusplus
extern "C"{
......
This diff is collapsed.
......@@ -315,8 +315,8 @@ void opencfd_mem_init_boundary(){
pu_dist_upper = (REAL*)malloc_me(sizeof(REAL)*ny*nx);
pfx = (REAL*)malloc_me(sizeof(REAL)*nx);
pgz = (REAL*)malloc_me(sizeof(REAL)*ny);
TM = (REAL*)malloc_me(sizeof(REAL)*MTMAX);
fait = (REAL*)malloc_me(sizeof(REAL)*MTMAX);
TM = (REAL*)malloc_me(sizeof(REAL)*abs(MTMAX));
fait = (REAL*)malloc_me(sizeof(REAL)*abs(MTMAX));
new_cudaField(&pu2d_inlet_d, ny, nz, 5);
new_cudaField(&pu2d_upper_d, nx, ny, 5);
......@@ -330,8 +330,8 @@ void opencfd_mem_init_boundary(){
pfx = (REAL*)malloc_me(sizeof(REAL)*nx);
pgz = (REAL*)malloc_me(sizeof(REAL)*nz);
TM = (REAL*)malloc_me(sizeof(REAL)*MTMAX);
fait = (REAL*)malloc_me(sizeof(REAL)*MTMAX);
TM = (REAL*)malloc_me(sizeof(REAL)*abs(MTMAX));
fait = (REAL*)malloc_me(sizeof(REAL)*abs(MTMAX));
//ptmp = (REAL*)malloc_me_Host(sizeof(REAL)*10*nx*nz);
new_cudaField(&pub1_d, ny, 4, 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment