示例#1
0
void computeSystem(int myid, int nproc,char * dirIn,char * dirOut, char ** listFile, int numFile, int idxFile)
{
  
  BioSystem sistema;
  char * json_system;  
  
  //set input path file
  char * fileNameIn = (char *) malloc(1000*sizeof(char)); 
  char * fileNameOut = (char *) malloc(1000*sizeof(char)); 
  strcpy( fileNameIn, dirIn);
  strcat( fileNameIn, listFile[idxFile]);
  
  //extract system from file
  json_system = fget_contents(fileNameIn);
  sistema = extract_from_json(json_system);
  
  //set output path file
  strcpy( fileNameOut,dirOut);
  strcat( fileNameOut, sistema.name);
  strcat( fileNameOut, ".out");
  
  
  //algo submission
  gillespie(sistema,fileNameOut);
  
}
示例#2
0
		inline Value(const Json::Value& to_copy)
		{
			extract_from_json(to_copy);
		}