An investigation of indomethacin-nicotinamide cocrystal formation induced by thermal stress in the solid or liquid state.