working phase-field, no threads though