From 533cb15c171487883b80288273c2a0d3a061033a Mon Sep 17 00:00:00 2001 From: Marc Bolinches Date: Wed, 1 Oct 2025 18:12:10 +0200 Subject: [PATCH] Check TemperatureMonitor is unstructured in Charge --- tidy3d/components/tcad/simulation/heat_charge.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tidy3d/components/tcad/simulation/heat_charge.py b/tidy3d/components/tcad/simulation/heat_charge.py index 14acabbdc3..ca686d1e0f 100644 --- a/tidy3d/components/tcad/simulation/heat_charge.py +++ b/tidy3d/components/tcad/simulation/heat_charge.py @@ -662,12 +662,10 @@ def check_charge_simulation(cls, values): "but none have been defined." ) - # NOTE: SteadyPotentialMonitor and SteadyFreeCarrierMonitor are only supported - # for unstructured = True + # NOTE: in Charge we're only supporting unstructured monitors. + # only Temperature and Potential monitors can be structured. for mnt in monitors: - if isinstance(mnt, SteadyPotentialMonitor) or isinstance( - mnt, SteadyFreeCarrierMonitor - ): + if isinstance(mnt, SteadyPotentialMonitor) or isinstance(mnt, TemperatureMonitor): if not mnt.unstructured: log.warning( "Currently, Charge simulations support only unstructured monitors. Please set "