Nodal value initialization in parallel for specific nodes

Please make your code a minimal reproducible example. It is not clear where the parallel issue occurs for your current code snippet. See for instance: Read before posting: How do I get my question answered? - #4 by nate
for a list of minimal code examples.