diff options
author | fahim-oscad | 2016-04-05 16:17:06 +0530 |
---|---|---|
committer | fahim-oscad | 2016-04-05 16:17:06 +0530 |
commit | fefb08b28917b55a545815b517c19736934fe3e4 (patch) | |
tree | 7d9802dfab91a5000322c84889a13017bf10124d /src/ngspicetoModelica | |
parent | 9ff48b10ff4c184aa605003df48ccf463ccecf2b (diff) | |
download | eSim-fefb08b28917b55a545815b517c19736934fe3e4.tar.gz eSim-fefb08b28917b55a545815b517c19736934fe3e4.tar.bz2 eSim-fefb08b28917b55a545815b517c19736934fe3e4.zip |
Modified subcircuit functionality in Openmodelica
Diffstat (limited to 'src/ngspicetoModelica')
-rw-r--r-- | src/ngspicetoModelica/NgspicetoModelica.py | 5 |
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 |