Code from nanowire ca / ga growth and computation