From 785941bb2db4999623bb37ebbed24c6f7889e2d8 Mon Sep 17 00:00:00 2001
From: Ralf Mueller <ralf.mueller@dkrz.de>
Date: Thu, 8 Aug 2019 14:51:21 +0200
Subject: [PATCH] add implementation of sinfo()

---
 interfaces/cdi.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/interfaces/cdi.cpp b/interfaces/cdi.cpp
index 599add2f2..05894de30 100644
--- a/interfaces/cdi.cpp
+++ b/interfaces/cdi.cpp
@@ -265,7 +265,12 @@ CdiVariable::CdiVariable(int streamid,int vlistid, int varid) {
 CdiVariable::~CdiVariable(){ size = -1; }
 
 void
-CdiVariable::sinfo() { std::cout << "code:"  << std::endl; }
+CdiVariable::sinfo() {
+  std::cout << "name:"  << name << std::endl;
+  std::cout << "longname:"  << longname << std::endl;
+  std::cout << "units:"  << units << std::endl;
+  std::cout << "code:"  << code << std::endl;
+}
 
 double *
 CdiVariable::getValuesAsPointer()
-- 
GitLab