I want to compile groovyBC 0.2.1 in OF 220.but it shows errors and OF doesn't recognize the groovyBC boundary condition.

Not even release 0.2.2 will compile on OF2.2. Get release 0.2.3. And you'll have to comment out one line with that (see discussions elsewhere) if you're using 2.2.0 (2.2.x will work out of the box)

__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

thank you dear Bernard.
I should ask a silly question now about where can find latest versions you mentioned if they are released.I couldn't find them in openfoamwiki.net contrib.
and where i can find discussions about compiling it for OF 2.2.0
thank you very much.

__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

another question I have is that how can I be aware of new releases of SWAK4FOAM?
thanks.

Remember the search function? Look for "swak4Foam new release", see which of the listed threads might be the right one and subscribe to it in the "Thread Tools"

__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request