summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfahim-oscad2016-04-18 15:49:44 +0530
committerfahim-oscad2016-04-18 15:49:44 +0530
commitb693280f4bcb6f662c3679145162e4d69dddf839 (patch)
tree5b1e34775aabe7bdeb0afdec8eadef9490fd3c32
parent55cfe66779913747c29f8c4fbc7e1a8e02c04f3c (diff)
downloadeSim-b693280f4bcb6f662c3679145162e4d69dddf839.tar.gz
eSim-b693280f4bcb6f662c3679145162e4d69dddf839.tar.bz2
eSim-b693280f4bcb6f662c3679145162e4d69dddf839.zip
Final gnd and zero issue resolved
-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 b6ea5835..d00e29dc 100644
--- a/src/ngspicetoModelica/NgspicetoModelica.py
+++ b/src/ngspicetoModelica/NgspicetoModelica.py
@@ -454,7 +454,7 @@ class NgMoConverter:
else:
continue
- if '0' in node:
+ if '0' or 'gnd' in node:
modelicaCompInit.append('Analog.Basic.Ground g;')
return modelicaCompInit, numNodesSub
@@ -650,6 +650,9 @@ class NgMoConverter:
if '0' in node:
conn = 'connect(g.p,n0);'
connInfo.append(conn)
+ elif 'gnd' in node:
+ conn = 'connect(g.p,ngnd);'
+ connInfo.append(conn)
return connInfo