|
From: Stefan J. <st...@gr...> - 2006-08-29 05:35:47
|
Am Mo, 28.08.2006, 15:06, schrieb asco developer: Hello! >> It is not actually a "problem". But in order to find out in which file >> the results are located a program needs to run gethostname(). This is >> ok for a user to find the file, since he/she knows the name. But for >> a program it is unconvenient since it requires to have "networking code" >> though it has nothing to do with networking! > > So, what you are saying is that the program might not work when there > is only 1 computer and no network name is defined. Is this correct? No, this is not the problem. There will be always a hostname (at least named localhost or something). But when using gethostname() you'll need additional checks for certain headers and libraries on different platforms *just for this one little function*. > Just in case you do not know already, the last simulation is always > executed by the machine where the optimization was started. If you > have 3 computers (machine1, machine2 and machine3) and you start the > optimization on machine1, the simulation with the lowest cost is > stored in machine1.dat. This is convenient anyway. Cheers, Stefan. |