inverse code for ACME heat simulation