Personal tools

Difference between revisions of "Mohid facts"

From MohidWiki

Jump to: navigation, search
(Code related facts (as of 2010-04-21))
(Code related facts (as of 2010-04-21))
Line 6: Line 6:
 
  > for i in `find | grep MOHID | grep -v Land | grep -v River | grep F90`; do cat $i | grep -re "call GetData" ; done | wc -l
 
  > for i in `find | grep MOHID | grep -v Land | grep -v River | grep F90`; do cat $i | grep -re "call GetData" ; done | wc -l
 
'''3436'''
 
'''3436'''
 
+
__
--
 
 
And in MohidWater and MohidLand together?
 
And in MohidWater and MohidLand together?
 
  > for i in `find | grep MOHID | grep F90`; do cat $i | grep -re "call GetData" ; done | wc -l
 
  > for i in `find | grep MOHID | grep F90`; do cat $i | grep -re "call GetData" ; done | wc -l

Revision as of 16:03, 21 April 2010

Linux is great to quickly get some trivial numbers related with the MOHID software suite...

Code related facts (as of 2010-04-21)

How many keywords are there in MohidWater (including Base1 and Base2 libraries)?

> for i in `find | grep MOHID | grep -v Land | grep -v River | grep F90`; do cat $i | grep -re "call GetData" ; done | wc -l

3436 __ And in MohidWater and MohidLand together?

> for i in `find | grep MOHID | grep F90`; do cat $i | grep -re "call GetData" ; done | wc -l

4082

How many lines of code is there in MohidWater and MohidLand (including Base1 and Base2)?

> for i in `find | grep MOHID | grep F90`; do cat $i; done | wc -l              

703820

And without empty lines?

> for i in `find | grep MOHID | grep F90`; do cat $i | grep "\w"; done | wc -l  

476330

And without comment-lines?

> for i in `find | grep MOHID | grep F90`; do cat $i | grep -v "^ *\!"; done | wc -l

400500

Related links