Skip to content

Commit ef3d257

Browse files
marc-flexmomchil-flex
authored andcommitted
Check TemperatureMonitor is unstructured in Charge
1 parent f9cf959 commit ef3d257

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tidy3d/components/tcad/simulation/heat_charge.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -662,12 +662,10 @@ def check_charge_simulation(cls, values):
662662
"but none have been defined."
663663
)
664664

665-
# NOTE: SteadyPotentialMonitor and SteadyFreeCarrierMonitor are only supported
666-
# for unstructured = True
665+
# NOTE: in Charge we're only supporting unstructured monitors.
666+
# only Temperature and Potential monitors can be structured.
667667
for mnt in monitors:
668-
if isinstance(mnt, SteadyPotentialMonitor) or isinstance(
669-
mnt, SteadyFreeCarrierMonitor
670-
):
668+
if isinstance(mnt, SteadyPotentialMonitor) or isinstance(mnt, TemperatureMonitor):
671669
if not mnt.unstructured:
672670
log.warning(
673671
"Currently, Charge simulations support only unstructured monitors. Please set "

0 commit comments

Comments
 (0)