summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfahim-oscad2016-04-05 16:17:06 +0530
committerfahim-oscad2016-04-05 16:17:06 +0530
commitfefb08b28917b55a545815b517c19736934fe3e4 (patch)
tree7d9802dfab91a5000322c84889a13017bf10124d /src
parent9ff48b10ff4c184aa605003df48ccf463ccecf2b (diff)
downloadeSim-fefb08b28917b55a545815b517c19736934fe3e4.tar.gz
eSim-fefb08b28917b55a545815b517c19736934fe3e4.tar.bz2
eSim-fefb08b28917b55a545815b517c19736934fe3e4.zip
Modified subcircuit functionality in Openmodelica
Diffstat (limited to 'src')
-rw-r--r--src/ngspicetoModelica/NgspicetoModelica.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py
index 6fe75516..fa915c41 100644
--- a/src/ngspicetoModelica/NgspicetoModelica.py
+++ b/src/ngspicetoModelica/NgspicetoModelica.py
@@ -405,6 +405,9 @@ class NgMoConverter:
#Lets start for Subcircuit
for eachline in self.subCktDetail:
+ print "each Line-------->",eachline
+ global point
+ global subname
temp_line = eachline.split()
temp = temp_line[0].split('x')
index = temp[1]
@@ -717,7 +720,7 @@ class NgMoConverter:
print "NodeDicSub-------------------------->",nodeDicSub
print "PinInitSub-------------------------->",pinInitSub
print "PinProtectedInitSub------------------->",pinProtectedInitSub
- modelicaSubCompInit, numNodesSubsub = self.compInit(subSchemInfo, nodeSub, subModelInfo, subsubName)
+ modelicaSubCompInit, numNodesSubsub = self.compInit(subSchemInfo, nodeSub, subModelInfo, subsubName,dir_name,transInfo)
print "modelicaSubCompInit--------------------->",modelicaSubCompInit
print "numNodesSubsub-------------------------->",numNodesSubsub
modelicaSubParamNew = self.getSubParamLine(eachsub, numNodesSub, modelicaSubParam,dir_name) ###Ask Manas