求助,我的源項出了什么問題呢?
瀏覽:2615 回答:1
各位老師,我寫的源項是找貼近壁面的網格然后賦給負的源項,可以編譯但是沒辦法計算,請問哪里有問題呢? 報錯如下 Node 0: Process 876: Received signal SIGSEGV.============================================================================================================================================================Node 1: Process 10836: Received signal SIGSEGV.============================================================================================================================================================ Node 2: Process 25596: Received signal SIGSEGV.==============================================================================MPI Application rank 0 exited before MPI_Finalize() with status 2 The fl process could not be started UDF是這樣的 #include "udf.h" DEFINE_ON_DEMAND(face_souce0) { Domain *d; Thread *t; cell_t c; Thread *t0; cell_t c0; face_t f; d = Get_Domain(1); t = Lookup_Thread(d,14); begin_f_loop(f,t) { c0 = F_C0(f,t); t0 = THREAD_T0(t); C_UDMI(c0,t0,0) = 1.0; } end_f_loop(f, t) } DEFINE_SOURCE(face_source0, cell, thread, dS, eqn) { real source; Thread *t0; cell_t c0; t0 = 0; c0 = 0; source = -0.041*C_YI(cell,thread,0)/C_VOLUME(cell,thread)/CURRENT_TIMESTEP * C_UDMI(c0,t0,0); return source; }





















請問你解決了嗎?我也有相同的問題