Skip to content

Commit

Permalink
bug in contactVoltage function for multidimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
dilaraabdel committed Apr 22, 2024
1 parent 72e3b8f commit cdff8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ct_system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ including the physical parameters, but also some numerical information
are located.
"""
function Data(grid, numberOfCarriers; contactVoltageFunction = [zeroVoltage, zeroVoltage], generationData = [0.0], statfunctions::Type{TFuncs}=StandardFuncSet) where TFuncs
function Data(grid, numberOfCarriers; contactVoltageFunction = [zeroVoltage for i=1:grid[NumBFaceRegions]], generationData = [0.0], statfunctions::Type{TFuncs}=StandardFuncSet) where TFuncs

numberOfBoundaryRegions = grid[NumBFaceRegions]

Expand Down

0 comments on commit cdff8ff

Please sign in to comment.