added support to change boundary condition types

Signed-off-by: Fredrik Carlsson <carl.fredrik.carlsson@gmail.com>