From fefb08b28917b55a545815b517c19736934fe3e4 Mon Sep 17 00:00:00 2001 From: fahim-oscad Date: Tue, 5 Apr 2016 16:17:06 +0530 Subject: Modified subcircuit functionality in Openmodelica --- src/ngspicetoModelica/NgspicetoModelica.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit