Fortran call pvmfaddhost( host, info )
If pvm_addhosts is successful, info will be equal to nhost. Partial success is indicated by 0 < info < nhost, and total failure by info < 1. The array infos can be checked to determine which host caused the error.
The Fortran routine pvmfaddhost adds a single host to the configuration with each call. info will be 1 if successful or < 0 if error.
The status of hosts can be requested by the application using pvm_mstat and pvm_config. If a host fails it will be automatically deleted from the configuration. Using pvm_addhosts a replacement host can be added by the application, however it is the responsibility of the application developer to make his application tolerant of host failure. Another use of this feature would be to add more hosts as they become available, for example on a weekend, or if the application dynamically determines it could use more computational power.
PvmBadParam giving an invalid argument value.
PvmAlready another task is currently adding hosts.
PvmSysErr local pvmd is not responding.
and in the infos vector: PvmBadParam bad hostname syntax.
PvmNoHost no such host.
PvmCantStart failed to start pvmd on host.
PvmDupHost host already configured.
PvmBadVersion pvmd protocol versions don't match.
PvmOutOfRes PVM has run out of system resources.