| 423 | } |
| 424 | |
| 425 | void structure::set_conductivity(component c, material_function &C) { |
| 426 | if (!gv.has_field(c)) return; |
| 427 | double tstart = wall_time(); |
| 428 | changing_chunks(); |
| 429 | for (int i = 0; i < num_chunks; i++) |
| 430 | if (chunks[i]->is_mine()) chunks[i]->set_conductivity(c, C); |
| 431 | all_wait(); // sync so that timing results are accurate |
| 432 | if (verbosity > 0) master_printf("time for set_conductivity = %g s\n", wall_time() - tstart); |
| 433 | } |
| 434 | |
| 435 | void structure::set_conductivity(component c, double Cfunc(const vec &)) { |
| 436 | simple_material_function conductivity(Cfunc); |
no test coverage detected