Update SILO_C/src_package/SILO_Write.cpp

Separated halfcyl from periodic case