def SetVersion(rootGroup, version):
    """
    **SetVersion** - Saves the version specified into the netCDF Loop Project File
    
    Parameters
    ----------
    rootGroup: netCDF4.Group
        The root group node of a Loop Project File
    version: [int,int,int]
        The version in list form with [Major/Minor/Sub] version
    
    Returns
    -------
       dict {"errorFlag","errorString"}
        errorString exist and contains error message only when errorFlag is
        True
   
    """
    if len(version) != 3:
        errStr = "(ERROR) invalid version for setting current version " + version
        print(errStr)
        return {"errorFlag":True,"errorString":errStr}
    else:
        rootGroup.loopMajorVersion = version[0]
        rootGroup.loopMinorVersion = version[1]
        rootGroup.loopSubVersion = version[2]
        return {"errorFlag":False}