INNER CODE UNIT · C

xyz

mittinatten/freesasa · src/coord.c:133

    xyz = malloc(sizeof(double) * n * 3);
    if (xyz == NULL) return mem_fail();

    for (i = 0; i < n; ++i) {
        xyz[i * 3] = x[i];
        xyz[i * 3 + 1] = y[i];
        xyz[i * 3 + 2] = z[i];
    }
    if (freesasa_coord_append(c, xyz, n) == FREESASA_SUCCESS) {
        free(xyz);
        return FREESASA_SUCCESS;
    }
    return mem_fail();
}

void freesasa_coord_set_i(coord_t *c,
                          int i,
                          const double *xyz)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…