ENH: add objectRegistry::count() methods

- can be useful for obtaining information about number of fields.
  Eg,

       nScalar = mesh.count<volScalarField>(wordre);
This commit is contained in:
Mark Olesen
2018-11-11 19:00:54 +01:00
parent 4965ea4988
commit f94d724a93
6 changed files with 501 additions and 12 deletions

View File

@ -0,0 +1,3 @@
Test-objectRegistry2.C
EXE = $(FOAM_USER_APPBIN)/Test-objectRegistry2

View File

@ -0,0 +1,8 @@
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-lfiniteVolume \
-lmeshTools \
-lgenericPatchFields