You can use thread_loop_c when you
want to loop over all cell threads in a given domain. It consists
of a single statement, followed by the operation(s) to be performed
on all cell threads in the domain enclosed within braces as shown below. Note that thread_loop_c is similar in implementation to the thread_loop_f macro described below.
Domain *domain;
Thread *c_thread;
thread_loop_c(c_thread, domain) /*loops over all cell threads in domain*/
{
}