THREAD_STORE: undeclared variable
Hi,
I get this error message THREAD_STORE: undeclared variable when interpreting this UDF #include "udf.h" DEFINE_ADJUST(species2, d){ FILE *pf; Thread *thread; face_t f, f_shadow; cell_t c0, c1; Thread *t0, *t1; real mass1, mass2, mass3, mass4; int ID1, ID2, cont; pf = fopen("masas_especies.txt", "wb"); ID1 = 17; thread = Lookup_Thread(d, ID1); cont = 0; begin_f_loop(f, thread){ c0 = F_C0(f, thread); t0 = F_C0_THREAD(f, thread); mass1 = C_YI(c0, t0, 0); mass2 = C_YI(c0, t0, 1); mass3 = C_YI(c0, t0, 2); mass4 = C_YI(c0, t0, 3); fprintf(pf, "%04d Masas naoh = %g naso4h = %g na2so4h = %g agua = %g\n", cont, mass1, mass2, mass3, mass4); cont = cont + 1; } end_f_loop(f, thread) fclose(pf); } The line of the error is t0 = F_C0_THREAD(f, thread); and I do not see what is wrong. Compiling does not work either. Any ideas? Thanks. |
All times are GMT -4. The time now is 02:28. |