| 查看: 819 | 回复: 0 | ||
[求助]
UDF单机多核并行计算
|
|
UDF如下,不知道应该怎么改 #include "udf.h" #include "sg_pb.h" #include "sg_mphase.h" DEFINE_PB_BREAK_UP_RATE_FREQ(break_up_freq_tav, cell, thread, d_1) { real epsi,f1, f2, rho_d; real C1 = 0.00481, C2 = 0.08, sigma = 0.04; Thread *tm = THREAD_SUPER_THREAD(thread);/*passed thread is phase*/ epsi = C_D(cell, tm); rho_d = C_R(cell, thread); f1 = pow(epsi, 1./3.)/pow(d_1, 2./3.); f2 = -(C2*sigma)/(rho_d*pow(epsi,2./3.)*pow(d_1, 5./3.)); return C1*f1*exp(f2); } DEFINE_PB_BREAK_UP_RATE_PDF(break_up_pdf_par, cell, thread, d_1, thread_2, d_2) { real pdf; real C1 = 180; real f_2, f_3, f_4; f_2 = pow(d_2, 2) / pow(d_1, 3); f_3 = pow(d_2, 6) / pow(d_1, 6); f_4 = pow(1. - (pow(d_2, 3) / pow(d_1, 3)),2); pdf = f_2*f_3*f_4; return C1*pdf; } |
» 猜你喜欢
职称评审没过,求安慰
已经有49人回复
26申博自荐
已经有3人回复
A期刊撤稿
已经有4人回复
垃圾破二本职称评审标准
已经有17人回复
投稿Elsevier的Neoplasia杂志,到最后选publishing options时页面空白,不能完成投稿
已经有22人回复
EST投稿状态问题
已经有7人回复
毕业后当辅导员了,天天各种学生超烦
已经有4人回复
三无产品还有机会吗
已经有6人回复













回复此楼